Configuration

You must create the following variables in the .env file:

WHITE_LIST_TOKEN

You can activate or deactivate the token’s creation giving a boolean value.

Example:

WHITE_LIST_TOKEN = True // Activates the token generation.
WHITE_LIST_TOKEN = False// Deactivates the token generation.

USERNAME_MIN_LENGTH

You can set the min lenght that username must has into the app.

Example:

USERNAME_MIN_LENGTH = 4 // This indicates that username must have at least 4 characters.

PASSWORD_MIN_LENGTH

You can set the min lenght that password must has into the app.

Example:

USERNAME_MIN_LENGTH = 6 // This indicates that password must have at least 6 characters.

SECRET_KEY

Must be a random string.

Example:

SECRET_KEY = 'not-secret'

How to configure it in my application?

In the .env file of your application you must fill in the previously created variables

Example:

USERNAME_MIN_LENGTH = 5
PASSWORD_MIN_LENGTH = 8
WHITE_LIST_TOKEN = False
SECRET_KEY = 'not-secret'

Default admin configuration

In .env file or your application you must have the variables:

DEFAULT_USER_ADMIN_USERNAME=
DEFAULT_USER_ADMIN_PASSWORD=

Example:

In .env file or your application you must have and fill the variables:

DEFAULT_USER_ADMIN_USERNAME=admin
DEFAULT_USER_ADMIN_PASSWORD=12345678