MAPG-115 add login functionality
This commit is contained in:
1 parent
d93a758cd2
commit
edc2e4111a
6 files changed
+202
-2
No files matched your search
@@ -22,9 +22,10 @@ class AddUserCommand extends Command
|
||||
{
|
||||
$user = new User([
|
||||
'email' => $input->getArgument('email'),
|
||||
'password' => $input->getArgument('password')
|
||||
]);
|
||||
|
||||
$user->setPlainPassword($input->getArgument('password'));
|
||||
|
||||
if ($input->hasArgument('type')) {
|
||||
$user->setType($input->getArgument('type'));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user