cms
cms copied to clipboard
[5.x]: `maxInvalidLogins` does not work for 2FA
What happened?
Description
I'd assume that maxInvalidLogins and invalidLoginWindowDuration would also work on users with 2FA enabled, but while entering a wrong password 5 times locks your account, one can enter unlimited tokens.
Steps to reproduce
- Enable 2FA
- Enter your username and password
- Try all tokens until you find the correct one
Expected behavior
The user should be locked as configued with maxInvalidLogins
Actual behavior
Unlimited tries possible.
Craft CMS version
5
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response
Hi, thanks for reporting! I raised a PR for this.
Craft 5.7.11 is out with that fix. Thanks again!