1
0
Fork 0

Update RegisterController, fixes #2436

This commit is contained in:
Daniel Supernault 2020-11-26 02:15:03 -07:00
parent 4fbada5586
commit 78a8798ace
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

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