mirror of
https://github.com/cydrobolt/polr.git
synced 2024-11-09 11:42:28 +01:00
Remove role form session when user logout.
This commit is contained in:
parent
c62f51476f
commit
58a69d9a5b
@ -30,6 +30,7 @@ class UserController extends Controller {
|
||||
|
||||
public function performLogoutUser(Request $request) {
|
||||
$request->session()->forget('username');
|
||||
$request->session()->forget('role');
|
||||
return redirect()->route('index');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user