소스 검색

Merge pull request #3507 from shleeable/patch-3

Update UserCreate.php - now() or null is not bool
daniel 3 년 전
부모
커밋
d5225d9197
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Console/Commands/UserCreate.php

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

@@ -53,7 +53,7 @@ class UserCreate extends Command
             $user->email = $o['email'];
             $user->password = bcrypt($o['password']);
             $user->is_admin = (bool) $o['is_admin'];
-            $user->email_verified_at = (bool) $o['confirm_email'] ? now() : null;
+            $user->email_verified_at = $o['confirm_email'] ? now() : null;
             $user->save();
 
             $this->info('Successfully created user!');