geonature.core.users.routes¶
Attributes¶
Functions¶
|
Returns the list of roles associated with a menu |
|
Returns the list of roles associated with a user list (identified by its code) |
|
Get role detail |
Get all roles |
|
Get all organisms |
|
Get all organisms and the JDD where there are actor and where |
|
Decorator to check if a user management feature is enabled. |
|
Add a user to temporary users table from the GeoNature interface |
|
Send an email with the user login and a link to reset its password |
|
Validate a user account after a request (this action is triggered by the link in the email) |
|
Modify the role of the user associated with the current token. |
|
Change the password of the connected user |
|
Changes the password of a user after they requested a password recovery |
Module Contents¶
Returns the list of roles associated with a menu
Parameters¶
- id_menuint
The id of user list (utilisateurs.bib_list)
- nom_completstr, optional
Beginning of complete name of the role
Returns¶
- list of dict
List of roles associated with the menu
Returns the list of roles associated with a user list (identified by its code)
Parameters¶
- code_listestr
The code of user list (utilisateurs.t_lists)
- nom_completstr, optional
Beginning of complete name of the role, default None
Returns¶
- list
A list of roles associated with the user list
- geonature.core.users.routes.get_role(id_role)[source]¶
Get role detail
Parameters¶
- id_roleint
the id user
Returns¶
- dict
A dictionary containing the role detail
- geonature.core.users.routes.get_organismes_jdd()[source]¶
Get all organisms and the JDD where there are actor and where the current user hase autorization with its cruved
- geonature.core.users.routes.check_sign_up_enabled(key)[source]¶
Decorator to check if a user management feature is enabled.
Parameters¶
- keystr
The key of the feature. Must be one of: ENABLE_SIGN_UP, ENABLE_ACCOUNT_MANAGEMENT, AUTO_ACCOUNT_CREATION
- geonature.core.users.routes.inscription()[source]¶
Add a user to temporary users table from the GeoNature interface Works according to the “ENABLE_SIGN_UP” authorization in the config.
- geonature.core.users.routes.login_recovery()[source]¶
Send an email with the user login and a link to reset its password Only works if “ENABLE_SIGN_UP” is enabled
- geonature.core.users.routes.confirmation()[source]¶
Validate a user account after a request (this action is triggered by the link in the email) Create a personal JDD as post_action if the parameter AUTO_DATASET_CREATION is set to True
- geonature.core.users.routes.update_role()[source]¶
Modify the role of the user associated with the current token.