fix(activeuser): reset structure bdd
Some checks reported warnings
Cadoles/nineskeletor/pipeline/head This commit is unstable

This commit is contained in:
2022-09-29 16:53:21 +02:00
parent ca5f9fef2d
commit 2cad98ca86
9 changed files with 102 additions and 84 deletions

View File

@ -321,6 +321,7 @@ class SynchroCommand extends Command
if (!$user) {
$user = new User();
$user->setUsername($ldapentry[$this->username]);
$user->setIsactive(true);
$user->setIsvisible(true);
$user->setApikey(Uuid::uuid4());
$user->setRole('ROLE_USER');
@ -860,6 +861,7 @@ class SynchroCommand extends Command
if (!$user) {
$user = new User();
$user->setUsername($nineuser->userlogin);
$user->setIsactive(true);
$user->setIsvisible(true);
$user->setApikey(Uuid::uuid4());
$user->setRole('ROLE_USER');