Ahmer Ali Ahsan
Ahmer Ali Ahsan

Reputation: 6136

How to get access on user password in ASP.Net 4.5 using identity?

Scenario

Right now I've an project which is based on ASP.Net 4.0 using membership.

In membership I have an method named Membership.GetUser(txtGetUsername.Text).GetPassword() from which I can get password of specific user and this functionality is only give to admin if user faced any problems in our application he contact to admin and admin get their password and resolve his query. For security purpose we are maintaining logs.

Now I've build another application but this time I'm using ASP.Net 4.5 which is using Identity. Now I build the same page for admin to get the user password but how can I do this in Identity?

I've search on google related to my question but didn't resolve my query. I've also share some related questions with you as a reference.

Get password from a user with UserManager

Is there a way to get the user password using UserManager in ASP.NET Identity 2.0?

Upvotes: 0

Views: 1165

Answers (1)

Amirmasoud
Amirmasoud

Reputation: 21

to my knowledge what you want is simply impossible to achieve with identity, at least not by its default settings.By default, Identity calculate the hash for user's password and store the hash in database. but it provides a password reset procedure in case user forget the password.

identity PasswordHash break down :

https://www.blinkingcaret.com/2017/11/29/asp-net-identity-passwordhash/

Upvotes: 2

Related Questions