From 3242b31a8a5d922703cfed1cf55575fb687d76da Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Fri, 28 Apr 2017 12:46:58 +0200 Subject: [PATCH] U4-9812 FailedLoginAttempts should be reset to 0 after a successfull login attempt --- src/Umbraco.Core/Security/BackOfficeSignInManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Security/BackOfficeSignInManager.cs b/src/Umbraco.Core/Security/BackOfficeSignInManager.cs index 7f52958323..795453e484 100644 --- a/src/Umbraco.Core/Security/BackOfficeSignInManager.cs +++ b/src/Umbraco.Core/Security/BackOfficeSignInManager.cs @@ -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); } } -} \ No newline at end of file +}