Fortify/Jetstream - Is there a nice way to overwrite the 2FA methods? Such as enableTwoFactorAuthenticationUsing(). #34621
Unanswered
AlexWinder
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the FortifyServiceProvider there are various methods to allow you to overwrite the methods in Fortify.
I am looking to overwrite the 2FA features, for example I would like to throw an event when a user removes their 2FA codes from their account. Is there a nice way to do this? I have looked through various parts of the source code but I can't seem to find anything which is easily implementable. The only things I've been able to find would be to bind in the
Laravel\Fortify\Action\EnableTwoFactorAuthentication
andLaravel\Fortify\Action\DisableTwoFactorAuthentication
classes into my app, then overwrite the methods which seems quite silly considering thought had gone into allowing you to easily overwrite the other methods in Fortify as listed above.Has anyone had any experience with this yet?
Beta Was this translation helpful? Give feedback.
All reactions