mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-20 19:03:25 +08:00
Adding LoginFailed event. [Core Module Change]
This commit is contained in:
@@ -346,6 +346,7 @@ namespace Orchard.Users.Controllers {
|
||||
|
||||
var user = _membershipService.ValidateUser(userNameOrEmail, password);
|
||||
if (user == null) {
|
||||
_userEventHandler.LogInFailed(userNameOrEmail, password);
|
||||
ModelState.AddModelError("_FORM", T("The username or e-mail or password provided is incorrect."));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user