U4-9812 FailedLoginAttempts should be reset to 0 after a successfull login attempt

(cherry picked from commit 3242b31a8a)
This commit is contained in:
Sebastiaan Janssen
2017-04-28 12:46:58 +02:00
parent 244977dc95
commit 660f048b4f

View File

@@ -191,6 +191,7 @@ namespace Umbraco.Core.Security
//track the last login date
user.LastLoginDateUtc = DateTime.UtcNow;
user.AccessFailedCount = 0;
await UserManager.UpdateAsync(user);
_logger.WriteCore(TraceEventType.Information, 0,
@@ -231,4 +232,4 @@ namespace Umbraco.Core.Security
return null;
}
}
}
}