Skip to content

Commit

Permalink
Remove role form session when user logout.
Browse files Browse the repository at this point in the history
  • Loading branch information
DT27 committed Feb 11, 2018
1 parent c62f514 commit 58a69d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public function displayLostPasswordPage(Request $request) {

public function performLogoutUser(Request $request) {
$request->session()->forget('username');
$request->session()->forget('role');
return redirect()->route('index');
}

Expand Down

0 comments on commit 58a69d9

Please sign in to comment.