Membership Change Password

How can I change the password manually directly in the table membership? passwordformat = 1, so how can I hide the password before pasting into the table?

+3
source share
1 answer

There you can hack:

Assuming you don’t need the Security Question feature, you can call the method ResetPassword()in the Membership API and then use the return value of this method as the old value for ChangePassword().

Something like that:

 Membership.GetUser().ChangePassword(Membership.GetUser().ResetPassword(), "new password");

There's a more complicated hack that you can use if you need Security Q & A.

+7
source

Source: https://habr.com/ru/post/1741979/


All Articles