forked from mirror/pixelfed
Merge pull request #3507 from shleeable/patch-3
Update UserCreate.php - now() or null is not bool
This commit is contained in:
commit
d5225d9197
|
@ -53,7 +53,7 @@ class UserCreate extends Command
|
||||||
$user->email = $o['email'];
|
$user->email = $o['email'];
|
||||||
$user->password = bcrypt($o['password']);
|
$user->password = bcrypt($o['password']);
|
||||||
$user->is_admin = (bool) $o['is_admin'];
|
$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();
|
$user->save();
|
||||||
|
|
||||||
$this->info('Successfully created user!');
|
$this->info('Successfully created user!');
|
||||||
|
|
Loading…
Reference in New Issue