Make incorrect password error message consistent (#9556) (#11346)

This commit is contained in:
Hao Kung 2019-06-18 23:33:06 -07:00 committed by GitHub
parent ee0c9dcf35
commit b56108fc94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Identity.UI.V3.Pages.Account.Manage.Internal
{
if (!await _userManager.CheckPasswordAsync(user, Input.Password))
{
ModelState.AddModelError(string.Empty, "Password not correct.");
ModelState.AddModelError(string.Empty, "Incorrect password.");
return Page();
}
}

View File

@ -99,7 +99,7 @@ namespace Microsoft.AspNetCore.Identity.UI.V4.Pages.Account.Manage.Internal
{
if (!await _userManager.CheckPasswordAsync(user, Input.Password))
{
ModelState.AddModelError(string.Empty, "Password not correct.");
ModelState.AddModelError(string.Empty, "Incorrect password.");
return Page();
}
}