mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-05 05:13:02 +02:00
do not allow empty admin password during wizard
This commit is contained in:
parent
57d8452e2a
commit
29ef02af9a
|
@ -131,6 +131,10 @@ public class StartupController : BaseJellyfinApiController
|
||||||
public async Task<ActionResult> UpdateStartupUser([FromBody] StartupUserDto startupUserDto)
|
public async Task<ActionResult> UpdateStartupUser([FromBody] StartupUserDto startupUserDto)
|
||||||
{
|
{
|
||||||
var user = _userManager.Users.First();
|
var user = _userManager.Users.First();
|
||||||
|
if (string.IsNullOrWhiteSpace(startupUserDto.Password))
|
||||||
|
{
|
||||||
|
return BadRequest("Password must not be empty");
|
||||||
|
}
|
||||||
|
|
||||||
if (startupUserDto.Name is not null)
|
if (startupUserDto.Name is not null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue