Last post May 16, 2013 04:16 AM by bgt-prakash.s
Apr 12, 2013 09:32 AM|bgt-Bhuvana|LINK
I need to implement "forgot your password" feature.The requirement is when the "forgot your password" link is clicked I need to check if the Email id is already present in the database,if so I need to sent an Email with the reset password to the corresponding
I have checked lots of reference but i am not getting clear idea.Could some one please help?
Apr 12, 2013 09:44 AM|jktiwari2010|LINK
What is the proble ???
You just check email id in your controller and if Email Id does not exist return error message or whatever you want.
Code sample :
public ActionResult ForgotPassword(ForgotPasswordModel model, string returnUrl)
//check existing email id
ModelState.AddModelError("", "This email id does not exist.");
// If we got this far, something failed, redisplay form
Apr 12, 2013 01:36 PM|BrockAllen|LINK
I have this feature in my user account library -- you can look at it for ideas:
May 16, 2013 04:16 AM|bgt-prakash.s|LINK
ASP.NET MVC project not all the options are fully implemented to the same extend that they are in a brand new ASP.NET WebForms project.
For example, the option to reset your own password if you forgot your old one is not available out of the box in an ASP.NET MVC project.
Refer this URL