The Free Software Media System - Server Backend & API
Make IncrementInvalidLoginAttemptCount async.
Patrick Barron0c5ac10a68ff
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.csindex 343f452c7d..52e09a55a2 100644--- a/Jellyfin.Server.Implementations/Users/UserManager.cs+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs@@ -512,7 +512,7 @@ namespace Jellyfin.Server.Implementations.Users}else{- IncrementInvalidLoginAttemptCount(user);+ await IncrementInvalidLoginAttemptCount(user).ConfigureAwait(false);_logger.LogInformation("Authentication request for {UserName} has been denied (IP: {IP}).",user.Username,@@ -882,7 +882,7 @@ namespace Jellyfin.Server.Implementations.Users}}- private void IncrementInvalidLoginAttemptCount(User user)+ private async Task IncrementInvalidLoginAttemptCount(User user){user.InvalidLoginAttemptCount++;int? maxInvalidLogins = user.LoginAttemptsBeforeLockout;@@ -896,7 +896,7 @@ namespace Jellyfin.Server.Implementations.Usersuser.InvalidLoginAttemptCount);}- UpdateUser(user);+ await UpdateUserAsync(user).ConfigureAwait(false);}}}