소스 검색

Update FixUsernames command

Daniel Supernault 5 년 전
부모
커밋
e5d77c6d95
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/FixUsernames.php

+ 1 - 1
app/Console/Commands/FixUsernames.php

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