From 0ab710e5035190846de45b243e5163f5236aed92 Mon Sep 17 00:00:00 2001 From: Mohamed El-Kalioby Date: Sun, 16 Oct 2022 20:53:32 +0300 Subject: [PATCH] Minor fixes --- example/example/templates/login.html | 7 +++++-- mfa/templates/FIDO2/Auth_JS.html | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/example/example/templates/login.html b/example/example/templates/login.html index b61b094..fd21780 100644 --- a/example/example/templates/login.html +++ b/example/example/templates/login.html @@ -33,7 +33,7 @@ {% csrf_token %}
- +
@@ -45,7 +45,10 @@
+ +
+ @@ -58,7 +61,7 @@ {% include 'FIDO2/FormFill.html' %} -{# {% include 'FIDO2/Auth_JS.html' %}#} +{# {% include 'FIDO2/Auth_JS.html' with delay=True %}#} diff --git a/mfa/templates/FIDO2/Auth_JS.html b/mfa/templates/FIDO2/Auth_JS.html index a4a5b8c..10dbd59 100644 --- a/mfa/templates/FIDO2/Auth_JS.html +++ b/mfa/templates/FIDO2/Auth_JS.html @@ -64,8 +64,11 @@ ua=new UAParser().getResult() if (ua.browser.name == "Safari" || ua.browser.name == "Mobile Safari" || ua.os.name == "iOS" || ua.os.name == "iPadOS") $("#res").html("") - else - authen() + else { + {% if delay != True and not conditionalUI%} + authen() + {% endif %} + } } });