geonature.core.users.register_post_actions

Action triggered after register action (create temp user, change password etc…)

Functions

validators_emails()

Returns a list of validators emails

validate_temp_user(data)

Send an email after the action of account creation.

execute_actions_after_validation(data)

Execute post actions after a temp user has been validated.

create_dataset_user(user)

After dataset validation, add a personal Acquisition Framework and Dataset

inform_user(user)

Send an email to inform the user that his account was validate.

send_email_for_recovery(user)

Send an email with the login of the role and the possibility to reset

Module Contents

geonature.core.users.register_post_actions.validators_emails()[source]

Returns a list of validators emails

geonature.core.users.register_post_actions.validate_temp_user(data)[source]

Send an email after the action of account creation.

Parameters

datadict

Must contain the token of the temp user. Example : {« token »: « iamavalidtoken »}

geonature.core.users.register_post_actions.execute_actions_after_validation(data)[source]

Execute post actions after a temp user has been validated. If AUTO_DATASET_CREATION is set to True, create a personal JDD and AF for the user. Then, send an email to the user to inform him of the creation of his account.

geonature.core.users.register_post_actions.create_dataset_user(user)[source]

After dataset validation, add a personal Acquisition Framework and Dataset so the user can add new datasets.

Parameters

userdict

The user data

geonature.core.users.register_post_actions.inform_user(user)[source]

Send an email to inform the user that his account was validate.

Parameters

userdict

The user data

geonature.core.users.register_post_actions.send_email_for_recovery(user)[source]

Send an email with the login of the role and the possibility to reset its password

Parameters

userdict

The user data