MAPG-181 set user active when added from CLI

This commit is contained in:
Bence Pőcze 2020-06-28 03:19:07 +02:00
parent 4333240acc
commit bd5b49b09b
Signed by: bence
GPG Key ID: AA52B11A3269D1C1

View File

@ -23,6 +23,7 @@ class AddUserCommand extends Command
$user = new User(); $user = new User();
$user->setEmail($input->getArgument('email')); $user->setEmail($input->getArgument('email'));
$user->setPlainPassword($input->getArgument('password')); $user->setPlainPassword($input->getArgument('password'));
$user->setActive(true);
if ($input->hasArgument('type')) { if ($input->hasArgument('type')) {
$user->setType($input->getArgument('type')); $user->setType($input->getArgument('type'));