You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As Laravel is an open source project, we rely on the community to help us diagnose and fix issues as it is not possible to research and fix every issue reported to us via GitHub.
If possible, please make a pull request fixing the issue you have described, along with corresponding tests. All pull requests are promptly reviewed by the Laravel team.
@developerluanramos sure you can consider that recently the dispatch was added to the Authenticable trait by this PR #564
and all other package events are raised within action classes.
Considering this I would remove revert that PR completely.
Fortify Version
1.25.3
Laravel Version
10.48.27
PHP Version
8.1
Database Driver & Version
No response
Description
The TwoFactorAuthenticatedSessionController dispatches a RecoveryCodeReplaced event
fortify/src/Http/Controllers/TwoFactorAuthenticatedSessionController.php
Lines 57 to 64 in 1711276
but User::replaceRecoveryCode already dispatches the exact same event
fortify/src/TwoFactorAuthenticatable.php
Lines 47 to 57 in 1711276
I’m not sure where it would make the most sense to keep the dispatch, but I think it’s reasonable to avoid triggering it twice.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: