Prevent whitespaces in username during wizard setup.

This commit is contained in:
Jxiced 2025-02-21 21:19:20 +00:00
parent a9f84b92df
commit 70d07b830d

View File

@ -176,6 +176,10 @@ namespace Jellyfin.Server.Implementations.Users
/// <inheritdoc/>
public async Task UpdateUserAsync(User user)
{
ArgumentNullException.ThrowIfNull(user);
ThrowIfInvalidUsername(user.Username);
var dbContext = await _dbProvider.CreateDbContextAsync().ConfigureAwait(false);
await using (dbContext.ConfigureAwait(false))
{