1
0
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:
DT27 2018-02-11 15:39:59 +08:00
parent c62f51476f
commit 58a69d9a5b

View File

@ -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');
}