1
0
Fork 0
forked from mirror/pixelfed

Update FixUsernames command

This commit is contained in:
Daniel Supernault 2019-11-13 23:20:01 -07:00
parent 172d9d10fb
commit e5d77c6d95
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -51,7 +51,7 @@ class FixUsernames extends Command
if(in_array($user->username, $restricted)) {
$affected->push($user);
}
$val = str_replace(['-', '_'], '', $user->username);
$val = str_replace(['-', '_', '.'], '', $user->username);
if(!ctype_alnum($val)) {
$this->info('Found invalid username: ' . $user->username);
$affected->push($user);