Respect home hubs setting for registration #580 (#581)

Respect home hubs setting for registration #580
This commit is contained in:
Nabeel S
2020-02-23 17:21:26 -05:00
committed by GitHub
parent b34dc4868e
commit a1d6fa17ad
11 changed files with 62 additions and 64 deletions

View File

@@ -283,7 +283,7 @@ class InstallerController extends Controller
* @throws \Prettus\Validator\Exceptions\ValidatorException
* @throws \Exception
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
* @return mixed
*/
public function usersetup(Request $request)
{
@@ -326,8 +326,7 @@ class InstallerController extends Controller
'password' => Hash::make($request->get('password')),
];
$user = User::create($attrs);
$user = $this->userService->createUser($user, ['admin']);
$user = $this->userService->createUser($attrs, ['admin']);
Log::info('User registered: ', $user->toArray());
// Set the initial admin e-mail address