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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.