The Free Software Media System - Server Backend & API
Implement more review suggestions
Patrick Barron75af0a4e57ac
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.csindex 01151e65e4..d3cd29909b 100644--- a/Jellyfin.Server.Implementations/Users/UserManager.cs+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs@@ -276,7 +276,7 @@ namespace Jellyfin.Server.Implementations.UsersName = 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,diff --git a/MediaBrowser.Api/UserService.cs b/MediaBrowser.Api/UserService.csindex 7bf4f88f40..9cb9baf631 100644--- a/MediaBrowser.Api/UserService.cs+++ b/MediaBrowser.Api/UserService.cs@@ -566,7 +566,6 @@ namespace MediaBrowser.ApiAssertCanUpdateUser(_authContext, _userManager, request.Id, false);_userManager.UpdateConfiguration(request.Id, request);-}public void Post(UpdateUserPolicy request)