From 78a8798ace90f1a30759e974c5d94f5f9ccc4636 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 26 Nov 2020 02:15:03 -0700 Subject: [PATCH] Update RegisterController, fixes #2436 --- app/Http/Controllers/Auth/RegisterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 0a30c0705..046684329 100644 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/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.'); } },