laravel/laravel — pull request #1255 by joual (2012-09-20 22:01:24+00:00)
Title: Auth token now nulled on logout

If the token is not nulled on logout, a (poor) path going like this would work (incorrectly) :
Auth::attempt($data); // Successful login
...
Auth::logout(); // Successful logout
...
Auth::check(); // -> True!

Originally noticed this behavior in a test on a custom auth backend.

Also modified the appropriate test case to reflect this modification (this behavior was hidden due to an added workaround in the test cases).

Signed-off-by: Joel Marcotte