diff options
| author | crobibero <cody@robibe.ro> | 2020-06-07 14:47:08 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-07 14:47:08 -0600 |
| commit | 68e1ecaaf9626c9596c833571bb591a326449dc8 (patch) | |
| tree | 2d154298b20db305b40a89ec8467be59eb5a1429 /Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs | |
| parent | 98142613e8cd8266130847210fb6bfadc1ae11bd (diff) | |
Remove EasyPassword from Authentication providers
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs index b0c02030e..9c5056a6b 100644 --- a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs +++ b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs @@ -111,29 +111,5 @@ namespace Jellyfin.Server.Implementations.Users return 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); - } } } |
