Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi all,
Trying to unlock a member as part of a reset password process. But I am struggling to find the correct code to do this, previously I did similar to.
https://our.umbraco.com/forum/using-umbraco-and-getting-started/101003-unlock-member-account-and-reset-failed-login-attempts-after-change-password
Does anyone know how to do this in v10?
Many thanks,
I figured this out and got it working with the following.
var member = await _memberManager.FindByIdAsync(memberId); member.LockoutEnd = DateTimeOffset.Now; await _memberManager.UpdateAsync(member);
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Unlock member
Hi all,
Trying to unlock a member as part of a reset password process. But I am struggling to find the correct code to do this, previously I did similar to.
https://our.umbraco.com/forum/using-umbraco-and-getting-started/101003-unlock-member-account-and-reset-failed-login-attempts-after-change-password
Does anyone know how to do this in v10?
Many thanks,
I figured this out and got it working with the following.
is working on a reply...