From e5ccc495e8117fc50af2b71ef3aa4338b36d2449 Mon Sep 17 00:00:00 2001 From: Valentin Deniaud Date: Tue, 2 Apr 2019 15:12:25 +0200 Subject: [PATCH 10/13] wip: enable TOTP auth factor Temporary commit, should be replaced by a README indicating the necessary config changes. --- src/authentic2/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/authentic2/settings.py b/src/authentic2/settings.py index 9ffe4927..80902b50 100644 --- a/src/authentic2/settings.py +++ b/src/authentic2/settings.py @@ -132,6 +132,7 @@ INSTALLED_APPS = ( 'xstatic.pkg.jquery', 'xstatic.pkg.jquery_ui', 'xstatic.pkg.select2', + 'authentic2.auth2_multifactor.auth_oath', ) INSTALLED_APPS = tuple(plugins.register_plugins_installed_apps(INSTALLED_APPS)) @@ -163,7 +164,8 @@ ACCOUNT_ACTIVATION_DAYS = 2 ########################### AUTH_USER_MODEL = 'custom_user.User' AUTH_FRONTENDS = plugins.register_plugins_authenticators(( - 'authentic2.authenticators.LoginPasswordAuthenticator',)) + 'authentic2.authenticators.LoginPasswordAuthenticator', + 'authentic2.auth2_multifactor.auth_oath.authenticator.TOTPAuthenticator')) ########################### # RBAC settings -- 2.20.1