Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 10th, 2004, 06:28 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default forms authentication

hi,

I was wondering if there was a way to verify a user by sending them an email which they must reply to to be verified as a valid person?? How can you do that in ASP.NET??

Any ideas

Adz - The World is not enough
__________________
Adz - Learning The J2EE Ways.
 
Old April 10th, 2004, 07:52 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Well, you could send them an email that provides a secret link to a page that verifies them as a valid person.

Otherwise, I don't know of a way.

Snib

P2P Member
<><
 
Old April 11th, 2004, 07:59 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to aadz5
Default

snib,

how would you go about doing that??

Adz - The World is not enough
 
Old April 11th, 2004, 08:14 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

First, you need to send them an email. Use the System.Web.Mail namespace for this. Take a look at the MSDN article on the System.Web.Mail.SmtpMail class.

Within the body of the email you need to provide a link that is unique for that user. Usually, you would provide something that identifies the user on the querystring of the link and also provides some key so that the verification can't be spoofed. You could use a GUID as the key. Save the GUID to the user data, then generate and send the email with the link.

http://www.myserver.com/myWebApp/ver...E-AB265210F43E

Then the verifyUser page reads the userid and guid off the querystring and checks that against the database and changes the user status to "valid".

Peter
-------------------------
Work smarter, not harder





Similar Threads
Thread Thread Starter Forum Replies Last Post
Forms Authentication thetway Classic ASP Basics 1 August 18th, 2005 05:55 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.