Skip to content

failed to add a db record after auth failure #19

@jcherrabi

Description

@jcherrabi

Thank you for sharing,
i think i hit a bug...
if you simulate a failed login, and then log in successfully you will notice that no record was added due to the authentication throttling.

a normal behavior should be add a record if the type status changes regardless of throttling time, as this is a new state and should be logged.. so right now after a failed login, i do not get a successful log recorded.

the fix is as follow:
add this && $login['type'] == Login::TYPE_LOGIN to the if statement as shown below in the:
AuthChecker.php file
if (isset($login->created_at) && $login->created_at->gt($limit) && $login['type'] == Login::TYPE_LOGIN) { return false; }

cheers,
Jay

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions