MAPG-115 add login functionality

This commit is contained in:
bence committed 2020-06-09 21:04:27 +02:00
1 parent d93a758cd2
commit edc2e4111a
6 files changed
+202 -2

No files matched your search

+2 -1
View File
@@ -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'));
}