Skip to content

Restrict failed login attempts for users with 2FA

Sean McGivern requested to merge restrict-failed-2fa-attempts into master

What does this MR do?

Restrict failed login attempts from users with 2FA enabled.

Are there points in the code the reviewer needs to double check?

This code is mostly copied from Devise::Models::Lockable#valid_for_authentication?, as our custom login flow with two pages doesn't call this method.

Why was this MR needed?

We only lock accounts without 2FA enabled when they fail to successfully log in enough times in a row.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?


Merge request reports