1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

fixes for password reset for admin

This commit is contained in:
David Bomba 2021-12-10 13:10:02 +11:00
parent 0ec5eb5168
commit ac194665de

View File

@ -58,7 +58,11 @@ class ResetPasswordController extends Controller
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]);
}