aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-08 16:01:11 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-09 22:39:53 +0200
commit29b63498ad9db38f268aa29a3fcc0af1b9806e1a (patch)
tree47302a64b4b5492b9b7534989221cd8469853eab /okupy/settings
parentMerge pull request #49 from mgorny/merged-settings (diff)
downloadidentity.gentoo.org-29b63498ad9db38f268aa29a3fcc0af1b9806e1a.tar.gz
identity.gentoo.org-29b63498ad9db38f268aa29a3fcc0af1b9806e1a.tar.bz2
identity.gentoo.org-29b63498ad9db38f268aa29a3fcc0af1b9806e1a.zip
Introduce initial code for two-phase auth support.
This commit adds a simple NoOTPDevice model that currently serves the purpose of responding successfully to any request. The login view has been extended with proper OTP device setup and initial verification support.
Diffstat (limited to 'okupy/settings')
-rw-r--r--okupy/settings/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/okupy/settings/__init__.py b/okupy/settings/__init__.py
index da2a240..eaa496e 100644
--- a/okupy/settings/__init__.py
+++ b/okupy/settings/__init__.py
@@ -141,6 +141,7 @@ MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
+ 'django_otp.middleware.OTPMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
# Uncomment the next line for simple clickjacking protection:
# 'django.middleware.clickjacking.XFrameOptionsMiddleware',
@@ -155,6 +156,7 @@ INSTALLED_APPS = (
'django.contrib.messages',
'django.contrib.staticfiles',
'okupy.accounts',
+ 'okupy.otp.nootp',
)
#Compressor settings