diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2023-06-07 08:25:32 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2023-06-07 08:25:32 +0200 |
| commit | 006b04dc0b2fcbdcad50cbaf213cb1e7e47ea52a (patch) | |
| tree | 79ab7200fe2a9df9d0a3efb42755f6eb22fad08f /Jellyfin.Api/Controllers/StartupController.cs | |
| parent | a381cd3c7652e4c802e697e367370f4dba3987f6 (diff) | |
| parent | 60881eaa5981ffced3615fbff079871ed24c70e4 (diff) | |
Merge branch 'master' into network-rewrite
Diffstat (limited to 'Jellyfin.Api/Controllers/StartupController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/StartupController.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/StartupController.cs b/Jellyfin.Api/Controllers/StartupController.cs index aab390d1f..1098733b2 100644 --- a/Jellyfin.Api/Controllers/StartupController.cs +++ b/Jellyfin.Api/Controllers/StartupController.cs @@ -131,6 +131,10 @@ public class StartupController : BaseJellyfinApiController public async Task<ActionResult> UpdateStartupUser([FromBody] StartupUserDto startupUserDto) { var user = _userManager.Users.First(); + if (string.IsNullOrWhiteSpace(startupUserDto.Password)) + { + return BadRequest("Password must not be empty"); + } if (startupUserDto.Name is not null) { |
