change AUTH2FACTOR -> ENABLE_2FACTOR_AUTH

This commit is contained in:
Cayo Puigdefabregas 2024-02-06 18:25:50 +01:00
parent ddd25d0655
commit 1433949c4a
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class LoginView(auth_views.LoginView):
# )
# cache.set("KEY_DIDS", encryption_key, None)
cache.set("KEY_DIDS", sensitive_data_encryption_key, None)
if settings.AUTH2FACTOR:
if settings.ENABLE_2FACTOR_AUTH:
self.request.session["2fauth"] = str(uuid.uuid4())
return redirect(reverse_lazy('idhub:confirm_send_2f'))

View File

@ -227,5 +227,5 @@ SYNC_ORG_DEV = config('SYNC_ORG_DEV', 'y')
ORG_FILE = config('ORG_FILE', 'examples/organizations.csv')
ENABLE_EMAIL = config('ENABLE_EMAIL', default=True, cast=bool)
CREATE_TEST_USERS = config('CREATE_TEST_USERS', default=False, cast=bool)
AUTH2FACTOR = config('AUTH2FACTOR', default=True, cast=bool)
ENABLE_2FACTOR_AUTH = config('ENABLE_2FACTOR_AUTH', default=True, cast=bool)