Quellcode durchsuchen

Merge pull request #12545 from Bond-009/sha1

Remove passwordSha1 param from AuthenticateUser function
Niels van Velzen vor 9 Monaten
Ursprung
Commit
2b492ed8cd

+ 0 - 1
Emby.Server.Implementations/Session/SessionManager.cs

@@ -1468,7 +1468,6 @@ namespace Emby.Server.Implementations.Session
                 user = await _userManager.AuthenticateUser(
                     request.Username,
                     request.Password,
-                    null,
                     request.RemoteEndPoint,
                     true).ConfigureAwait(false);
             }

+ 0 - 1
Jellyfin.Api/Controllers/UserController.cs

@@ -296,7 +296,6 @@ public class UserController : BaseJellyfinApiController
                 var success = await _userManager.AuthenticateUser(
                     user.Username,
                     request.CurrentPw ?? string.Empty,
-                    request.CurrentPw ?? string.Empty,
                     HttpContext.GetNormalizedRemoteIP().ToString(),
                     false).ConfigureAwait(false);
 

+ 0 - 1
Jellyfin.Server.Implementations/Users/UserManager.cs

@@ -384,7 +384,6 @@ namespace Jellyfin.Server.Implementations.Users
         public async Task<User?> AuthenticateUser(
             string username,
             string password,
-            string passwordSha1,
             string remoteEndPoint,
             bool isUserSession)
         {

+ 1 - 2
MediaBrowser.Controller/Library/IUserManager.cs

@@ -117,11 +117,10 @@ namespace MediaBrowser.Controller.Library
         /// </summary>
         /// <param name="username">The user.</param>
         /// <param name="password">The password to use.</param>
-        /// <param name="passwordSha1">Hash of password.</param>
         /// <param name="remoteEndPoint">Remove endpoint to use.</param>
         /// <param name="isUserSession">Specifies if a user session.</param>
         /// <returns>User wrapped in awaitable task.</returns>
-        Task<User?> AuthenticateUser(string username, string password, string passwordSha1, string remoteEndPoint, bool isUserSession);
+        Task<User?> AuthenticateUser(string username, string password, string remoteEndPoint, bool isUserSession);
 
         /// <summary>
         /// Starts the forgot password process.