Skip to content

Auth token now nulled on logout #1255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2012
Merged

Auth token now nulled on logout #1255

merged 1 commit into from
Sep 26, 2012

Conversation

joual
Copy link

@joual joual commented Sep 20, 2012

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 <skaner // @gmail.com>

Signed-off-by: Joel Marcotte <skaner@gmail.com>
taylorotwell added a commit that referenced this pull request Sep 26, 2012
Auth token now nulled on logout
@taylorotwell taylorotwell merged commit 9acf541 into laravel:develop Sep 26, 2012
@taylorotwell
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants