mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-24 02:14:21 -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);
|
||||
|
||||
request()->session()->regenerate();
|
||||
|
||||
return redirect('/client/dashboard');
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user