mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-05 03:34:36 -04:00
Regenerate session when switching companies
This commit is contained in:
parent
ad30e691e2
commit
f868c6c66d
@ -29,6 +29,8 @@ class SwitchCompanyController extends Controller
|
|||||||
|
|
||||||
auth()->guard('contact')->loginUsingId($client_contact->id, true);
|
auth()->guard('contact')->loginUsingId($client_contact->id, true);
|
||||||
|
|
||||||
|
request()->session()->regenerate();
|
||||||
|
|
||||||
return redirect('/client/dashboard');
|
return redirect('/client/dashboard');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user