aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Thornton <thornbill@users.noreply.github.com>2025-04-12 09:12:33 -0400
committerGitHub <noreply@github.com>2025-04-12 07:12:33 -0600
commitafdde7b2439e7f96da0abb9a0989a62770dfb63b (patch)
tree90cc1d3255f13bd3d3175b8a8937fa293fbceb49
parent5020c0964028c79f37fd20a21530ead15abf1457 (diff)
Remove the hashed password from startup users response (#13904)
-rw-r--r--Jellyfin.Api/Controllers/StartupController.cs3
-rw-r--r--tests/Jellyfin.Server.Integration.Tests/Controllers/StartupControllerTests.cs4
2 files changed, 2 insertions, 5 deletions
diff --git a/Jellyfin.Api/Controllers/StartupController.cs b/Jellyfin.Api/Controllers/StartupController.cs
index 2278468d9..09f20558f 100644
--- a/Jellyfin.Api/Controllers/StartupController.cs
+++ b/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
};
}
diff --git a/tests/Jellyfin.Server.Integration.Tests/Controllers/StartupControllerTests.cs b/tests/Jellyfin.Server.Integration.Tests/Controllers/StartupControllerTests.cs
index 36ba6c7e3..c8ae2a88a 100644
--- a/tests/Jellyfin.Server.Integration.Tests/Controllers/StartupControllerTests.cs
+++ b/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]