Updated load default user command
parent
24a414ab66
commit
52a0493285
|
@ -20,6 +20,8 @@ class LoadDefaultUserAdminCommand extends Command
|
||||||
CONST string PLAIN_PASSWORD = '12345678';
|
CONST string PLAIN_PASSWORD = '12345678';
|
||||||
const string USERNAME = 'ogadmin';
|
const string USERNAME = 'ogadmin';
|
||||||
|
|
||||||
|
const string DEFAULT_GROUPS_VIEW = 'card';
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly EntityManagerInterface $entityManager
|
private readonly EntityManagerInterface $entityManager
|
||||||
)
|
)
|
||||||
|
@ -37,6 +39,7 @@ class LoadDefaultUserAdminCommand extends Command
|
||||||
|
|
||||||
$user = new User();
|
$user = new User();
|
||||||
$user->setUsername(self::USERNAME);
|
$user->setUsername(self::USERNAME);
|
||||||
|
$user->setGroupsView(self::DEFAULT_GROUPS_VIEW);
|
||||||
$user->setRoles([UserGroupPermissions::ROLE_SUPER_ADMIN]);
|
$user->setRoles([UserGroupPermissions::ROLE_SUPER_ADMIN]);
|
||||||
$user->setPassword($hash);
|
$user->setPassword($hash);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue