Invalid Reset Password Token ASP.NET C# -
i generate reset password token in 1 request, when want reset password in next request, says invalid token.
public async task<string> getresettoken(string userid) { var token = await _usermanager.generatepasswordresettokenasync(userid); return token; } public async task<identityresult> resetpassword(string userid, string token, string newpassword) { var result = await _usermanager.resetpasswordasync(userid, token, newpassword); return result; }
these 2 functions called respective api endpoints. flow of whole process is:
- enter email on website
- the api generates token , email gets sent reset link
- the reset link takes reset password page
- the page hits api again reset password
everything works except step 4, because api comes invalid token. i've checked token being generated same token received in step 4.
Comments
Post a Comment