mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
Fixing that the empty username validation message wasn't shown on the Lost Password page, fixes #5353
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user