mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
Make UserManager.IsValidUsername static
This commit is contained in:
parent
7f8f3e09e5
commit
4857b7d620
@ -648,7 +648,7 @@ namespace Jellyfin.Server.Implementations.Users
|
|||||||
dbContext.SaveChanges();
|
dbContext.SaveChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsValidUsername(string name)
|
private static bool IsValidUsername(string name)
|
||||||
{
|
{
|
||||||
// This is some regex that matches only on unicode "word" characters, as well as -, _ and @
|
// 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
|
// In theory this will cut out most if not all 'control' characters which should help minimize any weirdness
|
||||||
|
Loading…
x
Reference in New Issue
Block a user