diff options
| author | Niels van Velzen <git@ndat.nl> | 2025-10-05 10:59:10 +0200 |
|---|---|---|
| committer | Niels van Velzen <git@ndat.nl> | 2025-10-05 11:10:36 +0200 |
| commit | 0fb6d930e1ca14d1d3af06ecee310869d2e86dfe (patch) | |
| tree | bdc5466c622feb1cd4c9d509e44127189ee1036f /Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs | |
| parent | 288640a5d0f8335f6c4093de9bc84acd4d5824db (diff) | |
Deprecate HasPassword property on UserDto
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs index 35c43b176..446849b6f 100644 --- a/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs +++ b/Jellyfin.Server.Implementations/Users/DefaultAuthenticationProvider.cs @@ -59,7 +59,7 @@ namespace Jellyfin.Server.Implementations.Users } // As long as jellyfin supports password-less users, we need this little block here to accommodate - if (!HasPassword(resolvedUser) && string.IsNullOrEmpty(password)) + if (string.IsNullOrEmpty(resolvedUser.Password) && string.IsNullOrEmpty(password)) { return Task.FromResult(new ProviderAuthenticationResult { @@ -94,10 +94,6 @@ namespace Jellyfin.Server.Implementations.Users } /// <inheritdoc /> - public bool HasPassword(User user) - => !string.IsNullOrEmpty(user?.Password); - - /// <inheritdoc /> public Task ChangePassword(User user, string newPassword) { if (string.IsNullOrEmpty(newPassword)) |
