Search code examples
asp.net-mvcmembersqlmembershipprovider

get users password and email it in asp.net mvc


Im using an asp.net mvc 3 project. I want to be able to email a users password to them if they submit their username in RecoverPassword page.

How can i do that?

Thanks


Solution

  • Its best to store the password in your database as a hash so it can never be reversed. If they forget their password, best thing to do is let them reset it, rather than telling them what the old one is.