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

This commit is contained in:
Sebastiaan Janssen
2017-04-28 12:46:58 +02:00
committed by GitHub
parent 2be330d237
commit 3242b31a8a

View File

@@ -129,6 +129,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,
@@ -138,4 +139,4 @@ namespace Umbraco.Core.Security
_request.RemoteIpAddress), null, null);
}
}
}
}