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:

  1. enter email on website
  2. the api generates token , email gets sent reset link
  3. the reset link takes reset password page
  4. 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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -