Skip to content

Commit

Permalink
fixes for password reset for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Dec 10, 2021
1 parent 0ec5eb5 commit ac19466
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/Http/Controllers/Auth/ResetPasswordController.php
Expand Up @@ -58,7 +58,11 @@ public function showResetForm(Request $request, $token = null)

MultiDB::findAndSetDbByCompanyKey($request->session()->get('company_key'));
$company = Company::where('company_key', $request->session()->get('company_key'))->first();
$account = $company->account;

if($company)
$account = $company->account;
else
$account = Account::first();

return $this->render('auth.passwords.reset', ['root' => 'themes', 'token' => $token, 'account' => $account]);
}
Expand Down

0 comments on commit ac19466

Please sign in to comment.