fucked up...
This commit is contained in:
parent
0775eaf8c1
commit
ed5e320ff6
@ -455,7 +455,7 @@ class User {
|
||||
$this->setErrorMessage('Username exceeding character limit');
|
||||
return false;
|
||||
}
|
||||
if (!preg_match('/[^a-zA-Z0-9_\-]/', $username)) {
|
||||
if (preg_match('/[^a-zA-Z0-9_\-]/', $username)) {
|
||||
$this->setErrorMessage('Username may only contain alphanumeric characters');
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user