2fa icon indicating copy to clipboard operation
2fa copied to clipboard

Modify 2fa in project to check all factors (username+password and 2fa code) before reporting an error

Open thereisnobugs opened this issue 6 months ago • 2 comments

Bundle version: 5.13.2 | 6.12.0 Symfony version: 5.4 | 6.4 PHP version: >8.1

Description

I need to modify the two-factor authentication process in my Symfony project that uses SchebTwoFactorBundle. Currently, if one of the authentication factors fails, the system immediately reports an error. I need to change this so that the system checks all authentication factors, even if one of them fails, and only reports an error after all factors have been checked. This is to prevent it from being clear at which step the error occurred. How can I do that?

thereisnobugs avatar Jul 31 '24 08:07 thereisnobugs