1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

Merge pull request #3507 from shleeable/patch-3

Update UserCreate.php - now() or null is not bool
This commit is contained in:
daniel 2022-05-21 00:36:01 -06:00 committed by GitHub
commit d5225d9197
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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