mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-08-01 19:58:57 +08:00
Fixing that the empty username validation message wasn't shown on the Lost Password page, fixes #5353
This commit is contained in:
parent
f2bf75328e
commit
59b3d50e03
@ -187,7 +187,7 @@ namespace Orchard.Users.Controllers {
|
||||
}
|
||||
|
||||
if(String.IsNullOrWhiteSpace(username)){
|
||||
ModelState.AddModelError("userNameOrEmail", T("Invalid username or E-mail."));
|
||||
ModelState.AddModelError("username", T("You must specify a username or e-mail."));
|
||||
return View();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user