Enable allauth.mfa for two-factor authentication

This commit is contained in:
Jelmer Draaijer 2024-02-08 16:52:16 +01:00
parent 6b90a9e701
commit 44ca412dc1
3 changed files with 5 additions and 1 deletions

View File

@ -83,6 +83,7 @@ THIRD_PARTY_APPS = [
"crispy_bootstrap5",
"allauth",
"allauth.account",
"allauth.mfa",
"allauth.socialaccount",
{%- if cookiecutter.use_celery == 'y' %}
"django_celery_beat",

View File

@ -31,7 +31,7 @@ uvicorn[standard]==0.27.0.post1 # https://github.com/encode/uvicorn
django==4.2.10 # pyup: < 5.0 # https://www.djangoproject.com/
django-environ==0.11.2 # https://github.com/joke2k/django-environ
django-model-utils==4.3.1 # https://github.com/jazzband/django-model-utils
django-allauth==0.61.0 # https://github.com/pennersr/django-allauth
django-allauth[mfa]==0.61.0 # https://github.com/pennersr/django-allauth
django-crispy-forms==2.1 # https://github.com/django-crispy-forms/django-crispy-forms
crispy-bootstrap5==2023.10 # https://github.com/django-crispy-forms/crispy-bootstrap5
{%- if cookiecutter.frontend_pipeline == 'Django Compressor' %}

View File

@ -41,6 +41,9 @@
<a class="btn btn-primary"
href="{% url 'account_email' %}"
role="button">E-Mail</a>
<a class="btn btn-primary"
href="{% url 'mfa_index' %}"
role="button">MFA</a>
<!-- Your Stuff: Custom user template urls -->
</div>
</div>