#19195: Updating error to be consistant in account controller

Work Item: 19195

--HG--
branch : 1.x
This commit is contained in:
Nicholas Mayne
2013-06-07 19:44:09 +01:00
parent a47e2b0664
commit 4201d98954

View File

@@ -184,7 +184,7 @@ namespace Orchard.Users.Controllers {
}
if(String.IsNullOrWhiteSpace(username)){
_orchardServices.Notifier.Error(T("Invalid username or E-mail"));
ModelState.AddModelError("userNameOrEmail", T("Invalid username or E-mail."));
return View();
}