Debian Codegraph @

docs/account/signals.rst

raw
1 Signals
2 =======
3
4 There are several signals emitted during authentication flows. You can
5 hook to them for your own needs.
6
7 - ``allauth.account.signals.authentication_step_completed(request, user, method, **kwargs)``
8 Sent when an authentication step was completed. Note that this does not
9 imply that the user is fully signed in. For example, consider a case where a
10 user authenticates using a password, but still needs to complete the 2FA
11 challenge.
12
13 - ``allauth.account.signals.user_logged_in(request, user)``
14 Sent when a user logs in.
15
16 - ``allauth.account.signals.user_logged_out(request, user)``
17 Sent when a user logs out.
18
19 - ``allauth.account.signals.user_signed_up(request, user)``
20 Sent when a user signs up for an account. This signal is
21 typically followed by a ``user_logged_in``, unless email verification
22 prohibits the user to log in.
23
24 - ``allauth.account.signals.password_set(request, user)``
25 Sent when a password has been successfully set for the first time.
26
27 - ``allauth.account.signals.password_changed(request, user)``
28 Sent when a password has been successfully changed.
29
30 - ``allauth.account.signals.password_reset(request, user)``
31 Sent when a password has been successfully reset.
32
33 - ``allauth.account.signals.email_confirmed(request, email_address)``
34 Sent after the email address in the db was updated and set to confirmed.
35
36 - ``allauth.account.signals.email_confirmation_sent(request, confirmation, signup)``
37 Sent right after the email confirmation is sent.
38
39 - ``allauth.account.signals.email_changed(request, user, from_email_address, to_email_address)``
40 Sent when a primary email address has been changed.
41
42 - ``allauth.account.signals.email_added(request, user, email_address)``
43 Sent when a new email address has been added.
44
45 - ``allauth.account.signals.email_removed(request, user, email_address)``
46 Sent when an email address has been deleted.
47
48 - ``allauth.account.signals.login_code_rejected(request, user, last_attempt)``
49 Sent when an incorrect login code was entered. The ``last_attempt`` boolean
50 indicates whether the maximum number of attempts has been reached.
51
52 - ``allauth.account.signals.password_reset_code_rejected(request, user, last_attempt)``
53 Sent when an incorrect password reset code was entered. The ``last_attempt``
54 boolean indicates whether the maximum number of attempts has been reached.
55
56 - ``allauth.account.signals.email_verification_code_rejected(request, user, last_attempt)``
57 Sent when an incorrect email verification code was entered. The
58 ``last_attempt`` boolean indicates whether the maximum number of attempts has
59 been reached.