Skip to content

Commit ea2e821

Browse files
committed
Add documentation for the events
1 parent d32a5ce commit ea2e821

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

doc/events.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,3 +206,23 @@ Constant: ``Scheb\TwoFactorBundle\Security\TwoFactor\Event\TotpCodeEvents::INVAL
206206
Event class: ``Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorCodeEvent``
207207

208208
Is dispatched when the code was deemed to be a invalid TOTP code.
209+
210+
TOTP Check Events
211+
-----------------
212+
213+
The following events are dispatched before the TOTP authentication provider is used
214+
215+
``TwoFactorCodeCheckEvent``
216+
~~~~~~~~~~~~~~~~~~~~~~~~~
217+
218+
Event class: ``\Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorCodeCheckEvent``
219+
220+
Is dispatched before the TOTP authentication provider is used to check the code for plausibility
221+
222+
``TwoFactorCodeReusedEvent``
223+
~~~~~~~~~~~~~~~~~~~~~~~~~~
224+
225+
Event class: ``\Scheb\TwoFactorBundle\Security\TwoFactor\Event\TwoFactorCodeReusedEvent``
226+
227+
Is dispatched when the code has been used already within the last 30 seconds.
228+
This requires a caching backend to be available

0 commit comments

Comments
 (0)