mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update FixUsernames command
This commit is contained in:
parent
172d9d10fb
commit
e5d77c6d95
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ class FixUsernames extends Command
|
||||||
if(in_array($user->username, $restricted)) {
|
if(in_array($user->username, $restricted)) {
|
||||||
$affected->push($user);
|
$affected->push($user);
|
||||||
}
|
}
|
||||||
$val = str_replace(['-', '_'], '', $user->username);
|
$val = str_replace(['-', '_', '.'], '', $user->username);
|
||||||
if(!ctype_alnum($val)) {
|
if(!ctype_alnum($val)) {
|
||||||
$this->info('Found invalid username: ' . $user->username);
|
$this->info('Found invalid username: ' . $user->username);
|
||||||
$affected->push($user);
|
$affected->push($user);
|
||||||
|
|
Loading…
Reference in a new issue