mirror of https://github.com/pixelfed/pixelfed.git
Update RegisterController, fixes #2436
This commit is contained in:
parent
4fbada5586
commit
78a8798ace
|
@ -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.');
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue