aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Users/UserManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-05-30 00:20:59 -0400
committerPatrick Barron <barronpm@gmail.com>2020-05-30 00:20:59 -0400
commit1b297eae7834e8604698ae780c4b2ced7d20897d (patch)
tree161da104538a9233042f219628bdd585f16973b9 /Jellyfin.Server.Implementations/Users/UserManager.cs
parentc8fef9dd2ecfaa0a9fe3df7a26b0afcec823ba52 (diff)
Reset invalid login attempt count properly
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Users/UserManager.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index b62c64830..91d0e5b80 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -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