Click here to Skip to main content
15,896,526 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a registration page. After the user is registered a activation email will be send to his email. The problem that I'm facing now is that, I cant able to block the registered user to log in before he clicks the link in the activation email. Can anybody help me to solve the problem ?
Posted

Maintain a status column in sql as 0.After clicking the activation link update the status as 1.If the user doesn't click the link then column will remain as 0

Check the status when user login.
 
Share this answer
 
Another way is, generate random Password at the time of registration..dont get the password from the user at the time of registration... after generating send that password to his/her email, so after he/she will login into his/her account(email) and will get the password and that pass will be usefull when logging check the password from the db and user's entered password matches or not....simply the best..:)
 
Share this answer
 
If you are using Membership (and you should be) it's pretty simple: http://buddylindsey.com/email-account-activation-with-asp-net-membership-part-1/[^] guides you through the process.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900