Debian Codegraph @

docs/mfa/signals.rst

raw
1 Signals
2 =======
3
4 There are several signals emitted during MFA flows. You can
5 hook to them for your own needs.
6
7 - ``allauth.mfa.signals.authenticator_added(request, user, authenticator)``
8 Sent when an authenticator is added.
9
10 - ``allauth.mfa.signals.authenticator_removed(request, user, authenticator)``
11 Sent when an authenticator is removed.
12
13 - ``allauth.mfa.signals.authenticator_reset(request, user, authenticator)``
14 Sent when an authenticator is reset (e.g. recovery codes regenerated).
15
16 - ``allauth.mfa.signals.authenticator_used(request, user, authenticator, reauthenticated, passwordless)``
17 Sent when an authenticator is successfully used, e.g. for login or
18 reauthentication purposes.
19
20 - ``allauth.mfa.signals.authentication_failed(request, user, authenticator, reauthentication)``
21 Sent when authentication via MFA failed, e.g. when an incorrect code was
22 entered.