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

TwoFactorFormListener: check if request has a session #109

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

brusch
Copy link
Contributor

@brusch brusch commented Oct 6, 2021

There could be situations where no session is given, in that case $this->tokenStorage->getToken() will throw an exception.
I think it would be better to just skip the handler in that case.

There could be situations where no session is given, in that case $this->tokenStorage->getToken() will throw an exception.
@scheb
Copy link
Owner

scheb commented Oct 6, 2021

Oke, would you please add a test case for this scenario?

@brusch
Copy link
Contributor Author

brusch commented Oct 6, 2021

@scheb there's no existing test for TwoFactorFormListener, still required?

@scheb
Copy link
Owner

scheb commented Oct 6, 2021

Ohhh, well, there should be one. I should definitely add that 🙈 So forget what I said, nothing for you, except you'd feel fancy to add it.

@brusch
Copy link
Contributor Author

brusch commented Oct 6, 2021

@scheb alright, thanks - then I'll leave the PR as it is for now 😊

@scheb
Copy link
Owner

scheb commented Oct 8, 2021

Forgot to approve the build. So now it's throwing out some formatting issues. Would you please run php-cs-fixer? That should do it.

@brusch
Copy link
Contributor Author

brusch commented Oct 11, 2021

@scheb fixed, but needs again approval 😊

@scheb scheb merged commit ee2e173 into scheb:5.x Oct 11, 2021
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