mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-03 03:44:34 -04:00
Clean up
This commit is contained in:
parent
ed20376bf5
commit
daf65587ca
@ -41,10 +41,20 @@ class ContactHashLoginController extends Controller
|
|||||||
{
|
{
|
||||||
return redirect($this->setRedirectPath());
|
return redirect($this->setRedirectPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Generic error page for client portal.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
public function errorPage()
|
public function errorPage()
|
||||||
{
|
{
|
||||||
return render('generic.error', ['title' => session()->get('title'), 'notification' => session()->get('notification'), 'account' => auth()->guard('contact')?->user()?->user?->account, 'company' => auth()->guard('contact')?->user()?->user?->company]);
|
return render('generic.error', [
|
||||||
|
'title' => session()->get('title'),
|
||||||
|
'notification' => session()->get('notification'),
|
||||||
|
'account' => auth()->guard('contact')?->user()?->user?->account,
|
||||||
|
'company' => auth()->guard('contact')?->user()?->user?->company
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setRedirectPath()
|
private function setRedirectPath()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user