Update UserCreate command, fix is_admin flag

pull/4383/head
Daniel Supernault 2023-05-15 06:15:09 -06:00
rodzic af35fe93ac
commit ad25ed6792
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 0DEF1C662C9033F7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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