The Free Software Media System - Server Backend & API
Remove EasyPassword from Authentication providers
crobibero68e1ecaaf962
diff --git a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.csindex b0c02030e3..9c5056a6b7 100644--- a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs+++ b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs@@ -111,29 +111,5 @@ namespace Jellyfin.Server.Implementations.Usersreturn Task.CompletedTask;}-- /// <inheritdoc />- public void ChangeEasyPassword(User user, string newPassword, string newPasswordHash)- {- if (newPassword != null)- {- newPasswordHash = _cryptographyProvider.CreatePasswordHash(newPassword).ToString();- }-- if (string.IsNullOrWhiteSpace(newPasswordHash))- {- throw new ArgumentNullException(nameof(newPasswordHash));- }-- user.EasyPassword = newPasswordHash;- }-- /// <inheritdoc />- public string GetEasyPasswordHash(User user)- {- return string.IsNullOrEmpty(user.EasyPassword)- ? null- : Hex.Encode(PasswordHash.Parse(user.EasyPassword).Hash);- }}}diff --git a/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.cs b/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.csindex b6e65b5595..8ad2fecdb0 100644--- a/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.cs+++ b/Jellyfin.Server.Implementations/Users/InvalidAuthProvider.cs@@ -32,17 +32,5 @@ namespace Jellyfin.Server.Implementations.Users{return Task.CompletedTask;}-- /// <inheritdoc />- public void ChangeEasyPassword(User user, string newPassword, string newPasswordHash)- {- // Nothing here- }-- /// <inheritdoc />- public string GetEasyPasswordHash(User user)- {- return string.Empty;- }}}diff --git a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.csindex c0324a3841..da812f5512 100644--- a/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs+++ b/MediaBrowser.Controller/Authentication/IAuthenticationProvider.cs@@ -11,8 +11,6 @@ namespace MediaBrowser.Controller.AuthenticationTask<ProviderAuthenticationResult> Authenticate(string username, string password);bool HasPassword(User user);Task ChangePassword(User user, string newPassword);- void ChangeEasyPassword(User user, string newPassword, string newPasswordHash);- string GetEasyPasswordHash(User user);}public interface IRequiresResolvedUser