From 7f17d50486dcf358d5c444caf4b4dc2849bed78f Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 25 Oct 2017 01:46:18 +1100 Subject: [PATCH] Enable django-otp-agents, for preserving OTP trust over time --- Pipfile | 1 + Pipfile.lock | 16 +++++++++++++++- lemonauth/templates/lemonauth/login.html | 8 ++++++++ lemonauth/views.py | 2 +- lemoncurry/settings/base.py | 6 ++++++ lemoncurry/urls.py | 4 ++-- 6 files changed, 33 insertions(+), 4 deletions(-) diff --git a/Pipfile b/Pipfile index 21bbbfa..c952404 100644 --- a/Pipfile +++ b/Pipfile @@ -19,6 +19,7 @@ django-redis-cache = "*" django-activeurl = "*" django-otp = "*" qrcode = "*" +django-otp-agents = "*" [dev-packages] diff --git a/Pipfile.lock b/Pipfile.lock index 341c2ef..d81ad7c 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "26e312dcbf4057505a29d0fa5b15c856ba3ba45a7b9545e20cc682dbef43d7df" + "sha256": "1d582e5b51466de2e917f117b537193fd1826f51d3a9a218f83d392d68d0c461" }, "host-environment-markers": { "implementation_name": "cpython", @@ -40,6 +40,13 @@ ], "version": "==0.1.11" }, + "django-agent-trust": { + "hashes": [ + "sha256:962653c4eeab63715a6efd27649a00302082c9fb1d931e3df959e57605eb8c25", + "sha256:b262db89410b9901c32f27f7dd6697bf61bfcfdc01651fe40699d0b81ebc4fcc" + ], + "version": "==0.3.0" + }, "django-appconf": { "hashes": [ "sha256:ddab987d14b26731352c01ee69c090a4ebfc9141ed223bef039d79587f22acd9", @@ -87,6 +94,13 @@ ], "version": "==0.4.1.1" }, + "django-otp-agents": { + "hashes": [ + "sha256:4ca8fae30418e0a813840cee5068d2fb96e3759787a5820d54921b90c7beaa7a", + "sha256:8d9f26d5a186b059251bd03e1ab509b5861a678e463c49de9b0766080b2c16a5" + ], + "version": "==0.3.0" + }, "django-redis-cache": { "hashes": [ "sha256:2b4e3510bbcaf3d331975717afd6f15a36fbaf7622504599d2727dc99f90c64d" diff --git a/lemonauth/templates/lemonauth/login.html b/lemonauth/templates/lemonauth/login.html index d4efbdc..d2ee3e5 100644 --- a/lemonauth/templates/lemonauth/login.html +++ b/lemonauth/templates/lemonauth/login.html @@ -31,6 +31,14 @@ {% form_field form.username %} {% form_field form.password %} {% form_field form.otp_token %} + +
+ +