Auth token now nulled on logout
Signed-off-by: Joel Marcotte <skaner@gmail.com>
This commit is contained in:
parent
0dc124d342
commit
3d51200a88
|
@ -127,6 +127,8 @@ public function logout()
|
|||
$this->cookie($this->recaller(), null, -2000);
|
||||
|
||||
Session::forget($this->token());
|
||||
|
||||
$this->token = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -294,9 +294,6 @@ public function testLogoutMethodLogsOutUser()
|
|||
|
||||
Auth::logout();
|
||||
|
||||
// A workaround since Cookie will is only stored in memory, until Response class is called.
|
||||
Auth::driver()->token = null;
|
||||
|
||||
$this->assertNull(Auth::user());
|
||||
|
||||
$this->assertFalse(isset(Session::$instance->session['data']['laravel_auth_drivers_fluent_login']));
|
||||
|
|
Loading…
Reference in New Issue