Merge pull request #2457 from yvisherve/staging

Update FixUsernames.php
This commit is contained in:
daniel 2020-11-26 19:56:36 -07:00 committed by GitHub
commit 576cc82ec5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ class FixUsernames extends Command
if($user->is_admin || $user->status == 'deleted') {
continue;
}
if(in_array($user->username, $restricted)) {
if(in_array(strtolower($user->username), array_map('strtolower', $restricted))) {
$affected->push($user);
}
$val = str_replace(['-', '_', '.'], '', $user->username);