-
Notifications
You must be signed in to change notification settings - Fork 27
Description
Hi,
I've recently encountered an issue where every time a user tries to login (regardless of success or failure), 2 LoginAttempt objects are created virtually at the same time.
I have tested it on a clean SilverStripe install with the MFA module installed (no extra config), with and with the TOPT module,
and get consistent duplication of the LoginAttempt.
This is causing an issue when a user has been locked out of the system for 15 minutes because of too many failed attempts.
I spent a few hours trying to pin point what could be the root cause, without success.
As far as I can tell, the LoginAttempt are created as part of the Authenticate method on the SilverStripe\Security\Authenticator class. I can't seem to find any instance where this method would be called twice or independently.
Perhaps someone else has experienced the same issue (you wouldn't know until looking in the DB really).
Thanks.
Alex
