From 6037a702856b84a09b9d97dc7c0a2bdcf169e2a9 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 21 Mar 2024 23:49:43 +0100 Subject: [PATCH] reintroduce otp codes --- InvenTree/InvenTree/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/InvenTree/InvenTree/settings.py b/InvenTree/InvenTree/settings.py index 7884206d2f..16fd04bd11 100644 --- a/InvenTree/InvenTree/settings.py +++ b/InvenTree/InvenTree/settings.py @@ -234,6 +234,9 @@ INSTALLED_APPS = [ 'allauth.account', # Extend user with accounts 'allauth.socialaccount', # Use 'social' providers 'allauth.mfa', # MFA for for allauth + 'django_otp', # OTP is needed for MFA - base package + 'django_otp.plugins.otp_totp', # Time based OTP + 'django_otp.plugins.otp_static', # Backup codes 'dj_rest_auth', # Authentication APIs - dj-rest-auth 'dj_rest_auth.registration', # Registration APIs - dj-rest-auth' 'drf_spectacular', # API documentation