Membership
1 post(s)
0 video(s)
login to rate this
How to Recover Access to your Account in an ASP.NET Application using the Membership (without decrypting your password)
4/2/2022 10:49:35 AM
0
0
|
nbolt
login to rate this
How to Recover Access to your Account in an ASP.NET Application using the Membership (without decrypting your password)
4/2/2022 10:49:35 AM
0
0
Hi Folks! Have you lost the password for your account (in an ASP.NET application using the Membership)? Look no further. The only caveat is that you need to have access to the application's source-code (we are going to create a method that resets the password and then change it to a known password).
Here's the workaround:
var u = Membership.GetUser("username or login");
if (u != null)
{
var p = u.ResetPassword();
u.ChangePassword(p, "new password");
}
Add that code to a method and then call it from somewhere in your application and voilà! There you have it, you just recovered access to an account without having to decrypt your password.
what to see next
nbolt
[.NET7] Weather Forecast with Dependency Injection and Custom Middleware
10/3/2023 10:35:11 AM
0
0
nbolt
NHibernate Providers for the .NET BlogEngine
4/2/2022 10:42:14 AM
0
0
nbolt
Weather with Unity and Dependency Injection
7/21/2022 8:09:56 PM
0
0
comment section
place your comment here, but login first
be the first to comment

We use cookies and similar technologies to enhance your browsing experience, analyze site traffic, personalize content, and serve targeted advertisements. By continuing to use our site, you consent to our use of cookies. And click OK to close this pop-up window.