Commit 36e88657 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

Fix :

 - Les comptes créés en ligne de commande sont activé par défaut
 - La commande auth:list affiche une colonne avec l'état (1: actif, 0: désactivé)
parent 7eeb4f10
Loading
Loading
Loading
Loading
+2 −0
Changes for module/Oscar/src/Oscar/Command/OscarAuthAddCommand.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Console\Question\Question;
use Laminas\Crypt\Password\Bcrypt;
use UnicaenUtilisateur\Entity\Db\AbstractUser;

class OscarAuthAddCommand extends OscarCommandAbstract
{
@@ -93,6 +94,7 @@ class OscarAuthAddCommand extends OscarCommandAbstract
            $auth->setPassword($passwordCrypted);
            $auth->setDisplayName($displayName);
            $auth->setUsername($identifiant);
            $auth->setState(1);
            $auth->setEmail($email);
            $oscarUserContextService->getEntityManager()->persist($auth);
            $oscarUserContextService->getEntityManager()->flush();
+2 −0
Changes for module/Oscar/src/Oscar/Command/OscarAuthListCommand.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ class OscarAuthListCommand extends OscarCommandAbstract
                "Identité" => "displayName",
                "Email" => "email",
                "Connexion" => "dateLogin",
                "State" => "state",
                'IDPERSON' => "personId"
            ];
        }
@@ -131,6 +132,7 @@ class OscarAuthListCommand extends OscarCommandAbstract
                $authentification['displayName'],
                sprintf("<link>%s</link>", $authentification['email']),
                $dateLogin,
                $authentification['state'],
                $authentification['IDPERSON'] ? sprintf(
                    "<id>%s</id>",
                    $authentification['IDPERSON']