Reset invalid login attempt count properly

This commit is contained in:
Patrick Barron 2020-05-30 00:20:59 -04:00
parent c8fef9dd2e
commit 1b297eae78

View File

@ -467,10 +467,10 @@ namespace Jellyfin.Server.Implementations.Users
if (isUserSession)
{
user.LastActivityDate = user.LastLoginDate = DateTime.UtcNow;
await UpdateUserAsync(user).ConfigureAwait(false);
}
user.InvalidLoginAttemptCount = 0;
await UpdateUserAsync(user).ConfigureAwait(false);
_logger.LogInformation("Authentication request for {UserName} has succeeded.", user.Username);
}
else