Skip to content

Commit

Permalink
Update FixUsernames command
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Nov 14, 2019
1 parent 172d9d1 commit e5d77c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Console/Commands/FixUsernames.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle()
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);
Expand Down

0 comments on commit e5d77c6

Please sign in to comment.