The Free Software Media System - Server Backend & API
Prevent whitespaces in username during wizard setup.
Jxiced70d07b830df0
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.csindex fba8923f89..91cf9c972f 100644--- a/Jellyfin.Server.Implementations/Users/UserManager.cs+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs@@ -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)){