mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-24 02:02:29 -04:00
Remove the hashed password from startup users response (#13904)
This commit is contained in:
parent
5020c09640
commit
afdde7b243
@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user