Commit 9b299544 authored by Samuel GAIST's avatar Samuel GAIST

[settings][settings] Add two_factor

parent e1d3ea7d
......@@ -208,7 +208,7 @@ ACCOUNT_EXPIRATION_DAYS = 365
ACCOUNT_BLOCKAGE_AFTER_FIRST_REJECTION_DAYS = 56
LOGIN_REDIRECT_URL = "/"
LOGIN_URL = "/login/"
LOGIN_URL = "two_factor:login"
SYSTEM_ACCOUNT = "system"
PLOT_ACCOUNT = "plot"
PREREGISTRATION_ONLY = False
......@@ -285,6 +285,7 @@ MIDDLEWARE = [
"django.middleware.csrf.CsrfViewMiddleware",
"django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware",
"django_otp.middleware.OTPMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"beat.web.navigation.middleware.AgreementMiddleware",
]
......@@ -307,6 +308,10 @@ INSTALLED_APPS = (
"rest_framework.authtoken",
"jsonfield",
"actstream",
"django_otp",
"django_otp.plugins.otp_static",
"django_otp.plugins.otp_totp",
"two_factor",
"beat.web.ui.registration.apps.UiRegistrationConfig",
"beat.web.accounts.apps.AccountsConfig",
"beat.web.algorithms.apps.AlgorithmsConfig",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment