[BUGFIX] Dispatch event on failed mfa attempt
By dispatching a new PSR-14 Event on a failed multi-factor authentication attempt, it's now possible to consider such failed attempts in the "send email on failed login" functionality. The improved log message does now also use the correct "action" and "error" types, which allows further functionality, such as the corresponding dashboard widget, to make use of those information. Resolves: #100129 Releases: main, 12.4 Change-Id: I52047bc45dba124f050aa31640444ce4af12c4df Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79816 Reviewed-by:Oliver Bartsch <bo@cedev.de> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Oliver Bartsch <bo@cedev.de>
Showing
- typo3/sysext/backend/Classes/Controller/MfaController.php 19 additions, 4 deletionstypo3/sysext/backend/Classes/Controller/MfaController.php
- typo3/sysext/backend/Classes/EventListener/FailedLoginAttemptNotification.php 4 additions, 2 deletions.../Classes/EventListener/FailedLoginAttemptNotification.php
- typo3/sysext/backend/Configuration/Services.yaml 4 additions, 0 deletionstypo3/sysext/backend/Configuration/Services.yaml
- typo3/sysext/backend/Tests/Functional/Controller/MfaControllerTest.php 3 additions, 1 deletion...backend/Tests/Functional/Controller/MfaControllerTest.php
- typo3/sysext/core/Classes/Authentication/Event/AbstractAuthenticationFailedEvent.php 53 additions, 0 deletions...uthentication/Event/AbstractAuthenticationFailedEvent.php
- typo3/sysext/core/Classes/Authentication/Event/LoginAttemptFailedEvent.php 2 additions, 17 deletions.../Classes/Authentication/Event/LoginAttemptFailedEvent.php
- typo3/sysext/core/Classes/Authentication/Event/MfaVerificationFailedEvent.php 50 additions, 0 deletions...asses/Authentication/Event/MfaVerificationFailedEvent.php
Please register or sign in to comment