API¶
Protecting Views¶
User Object Helpers¶
Datastores¶
Utils¶
Signals¶
See the Flask documentation on signals for information on how to use these signals in your code.
See the documentation for the signals provided by the Flask-Login and Flask-Principal extensions. In addition to those signals, Flask-Security sends the following signals.
-
user_registered
¶ Sent when a user registers on the site. In addition to the app (which is the sender), it is passed user and confirm_token arguments.
-
user_confirmed
¶ Sent when a user is confirmed. In addition to the app (which is the sender), it is passed a user argument.
-
confirm_instructions_sent
¶ Sent when a user requests confirmation instructions. In addition to the app (which is the sender), it is passed a user argument.
-
login_instructions_sent
¶ Sent when passwordless login is used and user logs in. In addition to the app (which is the sender), it is passed user and login_token arguments.
-
password_reset
¶ Sent when a user completes a password reset. In addition to the app (which is the sender), it is passed a user argument.
-
password_changed
¶ Sent when a user completes a password change. In addition to the app (which is the sender), it is passed a user argument.
-
reset_password_instructions_sent
¶ Sent when a user requests a password reset. In addition to the app (which is the sender), it is passed user and token arguments.