Utils
Here we will find functions that are used to transform information and return specific data. In accounts we will find the following:
get_params_password_validator
This function traverses the array of objects of the settings AUTH_PASSWORD_VALIDATORS variable to generate another array with the information from the IDENTIFIER field, data necessary to establish the password creation parameters.
build_absolute_uri
Function that prepares the format of the base url that are used in the generation of complete urls.
get_email_confirmation_url
This function returns the url that is sent in the confirmation email, so that the user can confirm their email address.
generate_url_password_reset
This function returns the url that is sent in the reset password email, so that the user accesses the password reset view.
user_pk_to_url_str
Function that returns the string uidb36 from the pk of a CustomUser instance, which is part of the url generated in the generate_url_password_reset function.
url_str_to_user_pk
This function returns a CustomUser instance from the string uidb36.
custom_password
Function that creates a random password.
google_get_access_token
With this function we obtain the access token from the Google authentication provider.
google_get_user_info
This function connects to the Google authentication provider to obtain the information of the user, who has registered or logged in through a Social Application.