-
Notifications
You must be signed in to change notification settings - Fork 13
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
Fix logging of failed logins & unknown users #62
Conversation
Thank you for submitting this fix. |
@GuySartorelli - My apologies, I have created #63 to explain the issue in greater detail referencing this PR. As for the unit tests however, I haven't a clue where to begin as both of these presumably require an actual failed login attempt via the form, unlike all the other unit tests which assume an identity using |
7dd6828
to
477bf87
Compare
No worries. I've added a test. I also noticed that this affects the 2.x line, so I've retargetted this PR to the current patch release branch for that release line. |
I also took the liberty to remove the |
164f93f
to
6cc27ef
Compare
Thanks @GuySartorelli, you're a star. If the auditor module is supposed to include "Login attempts (failed and successful)", then surely that also includes failed logins when no matching Email is found (ie: |
That scenario covered with the logged warning when no email is present. I couldn't find an easy way to test the warning is logged but the functionality is there. |
No it's not actually - that is my point. Unless both my understanding and testing is incorrect, according to the logic here, if a member exists with the email (incorrect password though) then The warning you are referring to in |
Fixes the `authenticationFailed()` method to correctly return the login email
Ahhh, I see. I misunderstood what you meant and there was no context until now about what that new method does. Thank you for providing that extra context. I've added that extension hook method back in and added a test for it. |
6cc27ef
to
d5f2f0b
Compare
Whew - I was starting to doubt my end-of-year sanity :) Glad it makes sense now! |
This will be automatically tagged as 2.6.2 shortly |
Fixes the
authenticationFailed()
method to correctly return the login email, and addsauthenticationFailedUnknownUser()
method to log unknown user login attempts.Issue