Adding LoginFailed event. [Core Module Change]

This commit is contained in:
sfmskywalker
2014-06-02 22:29:34 +02:00
parent 7c1c64eb90
commit de90b60603
3 changed files with 12 additions and 0 deletions

View File

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