Settings variables

These are the variables that you can set from settings.py to change some features of the application.

ENABLE_2FA (=True)

Enables or disables the two-step authentication module.

DEFAULT_2FA_METHOD (=”otp”)

Default two-step authentication method. This allows you to change the primary method used for 2FA.

OTP_APP_DISPLAY_NAME (=”otc”)

Descriptive name associated with the OTP that will appear in 2FA applications such as Google Authenticator.

OTP_SECRET_KEY (=String)

Random string that allows to create the cryptographic key used in the generation of the token for the configuration of the otp of the users.