Fixing that the empty username validation message wasn't shown on the Lost Password page, fixes #5353

This commit is contained in:
Lombiq 2015-08-16 02:08:12 +02:00
parent f2bf75328e
commit 59b3d50e03

View File

@ -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();
}