Fixes for authentication and users

This commit is contained in:
Dmitry Khomutov 2017-02-05 00:44:55 +07:00
commit 0ab4acd72f
No known key found for this signature in database
GPG key ID: 7EB36C9576F9ECB9
6 changed files with 36 additions and 43 deletions

View file

@ -466,7 +466,7 @@ class InstallCommand extends Command
/** @var UserStore $userStore */
$userStore = Factory::getStore('User');
$userService = new UserService($userStore);
$userService->createUser($admin['name'], $admin['email'], $admin['password'], 1);
$userService->createUser($admin['name'], $admin['email'], 'default', json_encode(['type' => 'internal']), $admin['password'], true);
$output->writeln('<info>User account created!</info>');
} catch (\Exception $ex) {