Merge pull request #1911 from umbraco/temp-U4-9812

U4-9812 FailedLoginAttempts should be reset to 0 after a successfull …
This commit is contained in:
Sebastiaan Janssen
2017-04-29 10:19:26 +02:00
committed by GitHub

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);
}
}
}
}