Browse Source

Update RegisterController, fixes #2436

Daniel Supernault 4 years ago
parent
commit
78a8798ace
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Http/Controllers/Auth/RegisterController.php

+ 1 - 1
app/Http/Controllers/Auth/RegisterController.php

@@ -90,7 +90,7 @@ class RegisterController extends Controller
                 }
 
                 $restricted = RestrictedNames::get();
-                if (in_array($value, $restricted)) {
+                if (in_array(strtolower($value), array_map('strtolower', $restricted))) {
                     return $fail('Username cannot be used.');
                 }
             },