Skip to content
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

[6.x] Fix logout() when using AuthenticateSession middleware #826

Merged
merged 1 commit into from
Oct 5, 2020
Merged

[6.x] Fix logout() when using AuthenticateSession middleware #826

merged 1 commit into from
Oct 5, 2020

Conversation

EmanueleCoppola
Copy link
Contributor

Should fix #825

@driesvints driesvints changed the title fix logout() when using AuthenticateSession middleware [6.x] Fix logout() when using AuthenticateSession middleware Oct 5, 2020
@driesvints
Copy link
Member

We don't support two the same browser calls in the same test method. Dusk is meant to mimic a real life scenario and you only do one single request when navigating to a page and running assertions.

@taylorotwell
Copy link
Member

@driesvints we don't?

@driesvints
Copy link
Member

@taylorotwell calling HTTP requests twice in the same test method has always lead to edge cases and problems afaik.

@taylorotwell taylorotwell merged commit 613778f into laravel:6.x Oct 5, 2020
@driesvints
Copy link
Member

FYI: this wasn't related to double HTTP calls in the end.

murrant added a commit to murrant/dusk that referenced this pull request Oct 17, 2021
Fix was attempted by laravel#826, but the string concatenation is wrong and it never uses the default guard.
murrant added a commit to murrant/dusk that referenced this pull request Oct 17, 2021
Fix was attempted by laravel#826, but the string concatenation is wrong and it never uses the default guard.
murrant added a commit to murrant/dusk that referenced this pull request Oct 17, 2021
Fix was attempted by laravel#826, but the string concatenation is wrong and it never uses the default guard.
taylorotwell pushed a commit that referenced this pull request Oct 18, 2021
…939)

* [6.x] Fix logout() when using AuthenticateSession and default guard

Fix was attempted by #826, but the string concatenation is wrong and it never uses the default guard.

* Use local variable instead
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.

Logout issue when using AuthenticateSession middleware
3 participants