mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #13556] [MERGED] Don't allow usernames to have leading or trailing spaces #13622
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/13556
Author: @Jxiced
Created: 2/14/2025
Status: ✅ Merged
Merged: 2/20/2025
Merged by: @Bond-009
Base:
master← Head:master📝 Commits (4)
a0ab0ebUpdate ThrowIfInvalidUsername to include whitespaces.237c1d9Update regex and revert previous changes to ThrowIfInvalidUsername.b5fcbfcUpdate test cases.84450bbUpdate Jellyfin.Server.Implementations/Users/UserManager.cs📊 Changes
2 files changed (+5 additions, -1 deletions)
View changed files
📝
Jellyfin.Server.Implementations/Users/UserManager.cs(+1 -1)📝
tests/Jellyfin.Server.Implementations.Tests/Users/UserManagerTests.cs(+4 -0)📄 Description
Changes
Perform a trim on the entered username and throw a different exception if the name exists but with a whitespace.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.