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:
parent
0ec5eb5168
commit
ac194665de
@ -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]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user