mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-26 00:03:16 +00:00
Update UserCreate command, fix is_admin flag
This commit is contained in:
parent
af35fe93ac
commit
ad25ed6792
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class UserCreate extends Command
|
|||
$user->name = $o['name'];
|
||||
$user->email = $o['email'];
|
||||
$user->password = bcrypt($o['password']);
|
||||
$user->is_admin = (bool) $o['is_admin'];
|
||||
$user->is_admin = $o['is_admin'] == 'true';
|
||||
$user->email_verified_at = $o['confirm_email'] ? now() : null;
|
||||
$user->save();
|
||||
|
||||
|
|
Loading…
Reference in a new issue