Skip to content

Login Attempts object are duplicated #421

@alex-dna

Description

@alex-dna

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

Screen Shot 2021-02-01 at 5 17 12 PM

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions