ASP.NET – Member Change Password

How to directly change the password manual in the table member? passwordformat = 1, then how to encrypt the password before inserting into the table?
There is a hack you can use:

Assuming you don’t need security questions /Answer function, you can call the ResetPassword() method in the membership API, and then use the return value of the method as the old value of ChangePassword().

Something like this:

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

If you need a secure Q&A, you can use more complicated hack.

How to directly change the password manual in the table member? passwordformat = 1, then how to encrypt the password before inserting into the table?

There is a hack you can use:

Assuming you don’t need the security question/answer function, you can call it in the membership API ResetPassword() method, and then use the return value of the method as the old value of ChangePassword().

Something like this:

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

If you need security Q&A, you can use more complicated hack.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2073 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.