diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2020-07-27 00:11:56 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 00:11:56 +0900 |
| commit | 8ab800508bb140d8671125245a64c9d27adcad13 (patch) | |
| tree | 4e5c3ca332ca9f2d5f838666ed0122e839642aab | |
| parent | e3db0ac400e7a1a42e7a844a13ab052d26125612 (diff) | |
| parent | 27e12798bc60ce1d27853afdb763681d4dce66cf (diff) | |
Merge pull request #3703 from oddstr13/pr-username-space-1
Allow space in username
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index e49a99fe5..eaa6a0a81 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -766,8 +766,8 @@ namespace Jellyfin.Server.Implementations.Users { // This is some regex that matches only on unicode "word" characters, as well as -, _ and @ // In theory this will cut out most if not all 'control' characters which should help minimize any weirdness - // Usernames can contain letters (a-z + whatever else unicode is cool with), numbers (0-9), at-signs (@), dashes (-), underscores (_), apostrophes ('), and periods (.) - return Regex.IsMatch(name, @"^[\w\-'._@]*$"); + // Usernames can contain letters (a-z + whatever else unicode is cool with), numbers (0-9), at-signs (@), dashes (-), underscores (_), apostrophes ('), periods (.) and spaces ( ) + return Regex.IsMatch(name, @"^[\w\ \-'._@]*$"); } private IAuthenticationProvider GetAuthenticationProvider(User user) |
