app.views_auth
Attributes
Functions
|
This function is used to load the user object from the user ID stored in the session. |
This function is used to handle unauthorized access to protected routes. |
|
|
This function is used to log out the user and redirect them to the login page. |
|
The view function for the registration page. |
|
The view function for the login page. |
The view function for the two factor authentication page. |
|
The view function for the email verification page. |
|
The view function for the password reset page. |
|
The view function for the password reset requested page. |
|
|
The view function for the set new password page. |
Get the Google SSO configuration. |
|
The view function for the Google login callback. |
Module Contents
- app.views_auth.load_user(user_id)[source]
This function is used to load the user object from the user ID stored in the session.
- Parameters:
user_id (str) – The ID of the user to load.
- Returns:
The user object from the db corresponding to the user ID.
- Return type:
- app.views_auth.unauthorized_callback()[source]
This function is used to handle unauthorized access to protected routes.
403 cases will be redirected to login
- app.views_auth.logout()[source]
This function is used to log out the user and redirect them to the login page.
- app.views_auth.email_confirmation_by_code()[source]
The view function for the email verification page.
- app.views_auth.password_reset_requested()[source]
The view function for the password reset requested page.
- app.views_auth.set_new_password(token)[source]
The view function for the set new password page.
- Parameters:
token (str) – The token from the forgot password email, used to verify the user.