Преглед на файлове

Make UserManager.IsValidUsername static

Patrick Barron преди 5 години
родител
ревизия
4857b7d620
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Jellyfin.Server.Implementations/Users/UserManager.cs

+ 1 - 1
Jellyfin.Server.Implementations/Users/UserManager.cs

@@ -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