فهرست منبع

Remove the hashed password from startup users response (#13904)

Bill Thornton 1 ماه پیش
والد
کامیت
afdde7b243

+ 1 - 2
Jellyfin.Api/Controllers/StartupController.cs

@@ -114,8 +114,7 @@ public class StartupController : BaseJellyfinApiController
         var user = _userManager.Users.First();
         return new StartupUserDto
         {
-            Name = user.Username,
-            Password = user.Password
+            Name = user.Username
         };
     }
 

+ 1 - 3
tests/Jellyfin.Server.Integration.Tests/Controllers/StartupControllerTests.cs

@@ -90,9 +90,7 @@ namespace Jellyfin.Server.Integration.Tests.Controllers
             var newUser = await getResponse.Content.ReadFromJsonAsync<StartupUserDto>(_jsonOptions);
             Assert.NotNull(newUser);
             Assert.Equal(user.Name, newUser.Name);
-            Assert.NotNull(newUser.Password);
-            Assert.NotEmpty(newUser.Password);
-            Assert.NotEqual(user.Password, newUser.Password);
+            Assert.Null(newUser.Password);
         }
 
         [Fact]