Hey there!
I'm using Umbraco 12 and I wanted to provide a "forgot password" mechanism to frontend members.
I'm currently asking for the e-mail to get the MemberIdentityUser member and then using the MemberManager.GeneratePasswordResetTokenAsync(member) to get the token. I then encode it and send the e-mail with the encoded token.
After clicking the link in the e-mail, a controller is called with the encoded token and the user. A token validation is performed using MemberManager.VerifyUserTokenAsync(member, _options.Tokens.PasswordResetTokenProvider, UserManager<MemberIdentityUser>.ResetPasswordTokenPurpose, token)
I've also tried MemberManager.VerifyUserTokenAsync(member, "Default", "ResetPassword", token)
Both return false. I've debugged it and can confirm the token sent (before encoding) matches the received token.
What am I missing here?
Thank you 🙂