• nbolt
  • [ 0.0 , 0 ]
login to rate this
How to Recover Access to your Account in an ASP.NET Application using the Membership (without decrypting your password)
0 0
  • nbolt
  • [ 0.0 , 0 ]
login to rate this
How to Recover Access to your Account in an ASP.NET Application using the Membership (without decrypting your password)
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
  • [ 0.0 , 0 ]
login to rate this
[.NET7] Weather Forecast with Dependency Injection and Custom Middleware
0 0
  • nbolt
  • [ 0.0 , 0 ]
login to rate this
NHibernate Providers for the .NET BlogEngine
0 0
  • nbolt
  • [ 0.0 , 0 ]
login to rate this
Weather with Unity and Dependency Injection
0 0
comment section
place your comment here, but login first
be the first to comment
An error has occurred . This application may no longer respond until reloaded . An unhandled exception has occurred . See browser dev tools for details . Reload 🗙