Configuration¶
ALLAUTH_2FA_TEMPLATE_EXTENSION
¶
Allows you to override the extension for the templates used by the internal views of django-allauth-2fa.
Defaults to ACCOUNT_TEMPLATE_EXTENSION
from allauth, which is html
by
default.
This can be used to allow a different template engine for 2FA views.
ALLAUTH_2FA_ALWAYS_REVEAL_BACKUP_TOKENS
¶
Whether to always show the remaining backup tokens on the Backup Tokens view, or only when they’re freshly generated.
Defaults to True
.
ALLAUTH_2FA_REMOVE_SUCCESS_URL
¶
The URL name to redirect to after removing a 2FA device.
ALLAUTH_2FA_SETUP_SUCCESS_URL
¶
The URL name to redirect to after setting up a 2FA device.
ALLAUTH_2FA_FORMS
¶
Used to override forms, for example:
{'authenticate': 'myapp.forms.TOTPAuthenticateForm'}
Possible keys (and default values):
authenticate
:allauth_2fa.forms.TOTPAuthenticateForm
setup
:allauth_2fa.forms.TOTPDeviceForm
remove
:allauth_2fa.forms.TOTPDeviceRemoveForm