浏览代码

Add another missing property

Patrick Barron 5 年之前
父节点
当前提交
d85308b474
共有 1 个文件被更改,包括 3 次插入1 次删除
  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/>
         public UserDto GetUserDto(User user, string remoteEndPoint = null)
         {
+            var hasPassword = GetAuthenticationProvider(user).HasPassword(user);
             return new UserDto
             {
                 Name = user.Username,
                 Id = user.Id,
                 ServerId = _appHost.SystemId,
-                HasPassword = GetAuthenticationProvider(user).HasPassword(user),
+                HasPassword = hasPassword,
+                HasConfiguredPassword = hasPassword,
                 HasConfiguredEasyPassword = !string.IsNullOrEmpty(user.EasyPassword),
                 EnableAutoLogin = user.EnableAutoLogin,
                 LastLoginDate = user.LastLoginDate,