MAPG-142 save user creation date

This commit is contained in:
bence committed 2020-07-05 14:24:06 +02:00
1 parent 38885849de
commit 32392590bd
4 files changed
+30 -1

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
<?php namespace MapGuesser\Cli;
use DateTime;
use MapGuesser\PersistentData\PersistentDataManager;
use MapGuesser\PersistentData\Model\User;
use Symfony\Component\Console\Command\Command;
@@ -24,6 +25,7 @@ class AddUserCommand extends Command
$user->setEmail($input->getArgument('email'));
$user->setPlainPassword($input->getArgument('password'));
$user->setActive(true);
$user->setCreatedDate(new DateTime());
if ($input->hasArgument('type')) {
$user->setType($input->getArgument('type'));