Unlock member account and reset failed login attempts after change password

Hi,

Trying to figure out how to reset a member’s failed password attempts and unlock their account programatically after they’ve changed their password.

I sent out an email to them with a reset password link. If it’s valid they can enter a new password. I use the IMemberService SavePassword method to change the password, but this doesn’t unlock the account. The MembershipHelper ChangePassword requires the current password to be provided.

I’ve tried updating the IsLockedOut and FailedPasswordAttempts property on the IMember entity. This worked in Umbraco 7, but doesn’t seem to work in Umbraco 8.

Feel like I’m missing something simple in getting this working?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/101003-unlock-member-account-and-reset-failed-login-attempts-after-change-password