mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +00:00
fix login password check bug
This commit is contained in:
parent
662bffcdf0
commit
2d5f268549
1 changed files with 25 additions and 18 deletions
|
@ -94,6 +94,8 @@ The address used to send this message is not a no-reply address. In fact, my nam
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
[ValidateAntiForgeryToken]
|
[ValidateAntiForgeryToken]
|
||||||
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
|
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (!ModelState.IsValid)
|
if (!ModelState.IsValid)
|
||||||
{
|
{
|
||||||
|
@ -117,6 +119,11 @@ The address used to send this message is not a no-reply address. In fact, my nam
|
||||||
return View(model);
|
return View(model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
ModelState.AddModelError("Password", new Exception("An error occurred while verifying your password. Possible cause: If you are a user from before the website was revamped, you don't have a usable password. Please reset it, otherwise you won't be able to log in."));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// GET: /Account/VerifyCode
|
// GET: /Account/VerifyCode
|
||||||
|
|
Loading…
Add table
Reference in a new issue