aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Users/UserManager.cs
diff options
context:
space:
mode:
authorPatrick Barron <barronpm@gmail.com>2020-06-07 19:37:47 -0400
committerPatrick Barron <barronpm@gmail.com>2020-06-07 19:37:47 -0400
commit75af0a4e57ac29fb8143717055c8df1fedeba6ec (patch)
tree9e30c3f753f6fd9ec41003a0c7d50ca841ea0be6 /Jellyfin.Server.Implementations/Users/UserManager.cs
parent98142613e8cd8266130847210fb6bfadc1ae11bd (diff)
Implement more review suggestions
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
-rw-r--r--Jellyfin.Server.Implementations/Users/UserManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs
index 01151e65e..d3cd29909 100644
--- a/Jellyfin.Server.Implementations/Users/UserManager.cs
+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs
@@ -276,7 +276,7 @@ namespace Jellyfin.Server.Implementations.Users
Name = user.Username,
Id = user.Id,
ServerId = _appHost.SystemId,
- HasPassword = user.Password != null,
+ HasPassword = GetAuthenticationProvider(user).HasPassword(user),
EnableAutoLogin = user.EnableAutoLogin,
LastLoginDate = user.LastLoginDate,
LastActivityDate = user.LastActivityDate,
@@ -303,7 +303,7 @@ namespace Jellyfin.Server.Implementations.Users
{
MaxParentalRating = user.MaxParentalAgeRating,
EnableUserPreferenceAccess = user.EnableUserPreferenceAccess,
- RemoteClientBitrateLimit = user.RemoteClientBitrateLimit ?? -1,
+ RemoteClientBitrateLimit = user.RemoteClientBitrateLimit ?? 0,
AuthenticationProviderId = user.AuthenticationProviderId,
PasswordResetProviderId = user.PasswordResetProviderId,
InvalidLoginAttemptCount = user.InvalidLoginAttemptCount,