Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want create Forgot password screen using Email ID validation.

How to do?

Thanks in Advance.
Posted

One quite nice article Improved ASP.NET Password Recovery[^]
 
Share this answer
 
 
Share this answer
 
in forgot password

add a textbox to input userid or email
which should be uniqre in our database

add a column "passwdresetKey" in our user table

when user input his userid or emailid
then check user or email existance in our database
if it exist then
create a guid string as a passwdresetKey and update it in database
(guid string should also unique)

and create a link of reset password page with query string value of passwdresetKey
(you can add userid also with second query variable)

and send it mail to user
(you can encrypt query string for security purpose)

when user click on this

our reset password page check guid and user id if ...

if it correct then show two textbox for new password and confirm password that user can change password

update password with old and update passwdresetKey as blank

this is the process you can follow
 
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