Commit 3d51200a authored by Joel Marcotte's avatar Joel Marcotte

Auth token now nulled on logout

Signed-off-by: 's avatarJoel Marcotte <skaner@gmail.com>
parent 0dc124d3
......@@ -127,6 +127,8 @@ abstract class Driver {
$this->cookie($this->recaller(), null, -2000);
Session::forget($this->token());
$this->token = null;
}
/**
......
......@@ -294,9 +294,6 @@ class AuthTest extends PHPUnit_Framework_TestCase {
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']));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment