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
1 changed files with 1 additions and 1 deletions

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);