Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using MVC5, i know that if a user forgets his password, then MVC provides the feature of forgot password and reset password. My client server is disconnected from internet or mailing, it is behind the firewalls, so i cannot use forgot password, as it might generate a link to reset password, but cannot mail it to the user to facilitate the password reset.

What I have tried:

Please suggest if there is any way to decrypt the password(to let user know if he forgets his password) like how it was available in asp.net membership by simply using the GetPassword method of the membership classes.
Posted
Updated 25-Sep-16 23:24pm

1 solution

First off MVC has no authentication feature at all, it's simply a presentation framework for websites. If you have passwords etc then you'll be using a different framework to implement that such as ASP.Net Membership or Identity.

As for the question, it depends on how the password is stored. If it is hashed (which is the default) then you can't decrypt it at all. If you don't want to reply on email then you can always right your own password reset feature (for hashed passwords), or password decrypt page if it is using encrypted password, google "asp.net membership reset password" for more details, these APIs are well documented.
 
Share this answer
 
Comments
goshan2011 26-Sep-16 5:35am    
I am using asp.net identity. I remember in Membership, we can use something like GetPassword method of membership to retrive the actual user password ( not hashed). i am checking if something similar is possible in identity.Can you help?
F-ES Sitecore 26-Sep-16 5:46am    
I don't think Identity supports any format other than hashing so you probably can't do anything to retrieve the password, you can only reset it.

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