Search code examples
asp.net-mvcasp.net-identity

How to customize ResetPasswordAsync Error messages - Asp.net mvc?


In the ResetPassword page if user input mistake email or Manipulate code, Invalid token. error was shown.

How can I customize these Errors? For example show Incorect Email you entered instead Invalid token.

http://localhost:17594/Account/ResetPassword?userId=A&code=B


Solution

  • I found answer here:

    How to Change Error message returned from "await UserManager.CreateAsync(user, model.Password)" ?