소스 검색

Reset invalid login attempt count properly

Patrick Barron 5 년 전
부모
커밋
1b297eae78
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Jellyfin.Server.Implementations/Users/UserManager.cs

+ 1 - 1
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