mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-22 06:50:58 -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();
|
var user = _userManager.Users.First();
|
||||||
return new StartupUserDto
|
return new StartupUserDto
|
||||||
{
|
{
|
||||||
Name = user.Username,
|
Name = user.Username
|
||||||
Password = user.Password
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -90,9 +90,7 @@ namespace Jellyfin.Server.Integration.Tests.Controllers
|
|||||||
var newUser = await getResponse.Content.ReadFromJsonAsync<StartupUserDto>(_jsonOptions);
|
var newUser = await getResponse.Content.ReadFromJsonAsync<StartupUserDto>(_jsonOptions);
|
||||||
Assert.NotNull(newUser);
|
Assert.NotNull(newUser);
|
||||||
Assert.Equal(user.Name, newUser.Name);
|
Assert.Equal(user.Name, newUser.Name);
|
||||||
Assert.NotNull(newUser.Password);
|
Assert.Null(newUser.Password);
|
||||||
Assert.NotEmpty(newUser.Password);
|
|
||||||
Assert.NotEqual(user.Password, newUser.Password);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user