Sfoglia il codice sorgente

Add another missing property

Patrick Barron 5 anni fa
parent
commit
d85308b474
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      Jellyfin.Server.Implementations/Users/UserManager.cs

+ 3 - 1
Jellyfin.Server.Implementations/Users/UserManager.cs

@@ -271,12 +271,14 @@ namespace Jellyfin.Server.Implementations.Users
         /// <inheritdoc/>
         /// <inheritdoc/>
         public UserDto GetUserDto(User user, string remoteEndPoint = null)
         public UserDto GetUserDto(User user, string remoteEndPoint = null)
         {
         {
+            var hasPassword = GetAuthenticationProvider(user).HasPassword(user);
             return new UserDto
             return new UserDto
             {
             {
                 Name = user.Username,
                 Name = user.Username,
                 Id = user.Id,
                 Id = user.Id,
                 ServerId = _appHost.SystemId,
                 ServerId = _appHost.SystemId,
-                HasPassword = GetAuthenticationProvider(user).HasPassword(user),
+                HasPassword = hasPassword,
+                HasConfiguredPassword = hasPassword,
                 HasConfiguredEasyPassword = !string.IsNullOrEmpty(user.EasyPassword),
                 HasConfiguredEasyPassword = !string.IsNullOrEmpty(user.EasyPassword),
                 EnableAutoLogin = user.EnableAutoLogin,
                 EnableAutoLogin = user.EnableAutoLogin,
                 LastLoginDate = user.LastLoginDate,
                 LastLoginDate = user.LastLoginDate,