MAPG-181 set user active when added from CLI
This commit is contained in:
parent
4333240acc
commit
bd5b49b09b
@ -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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user