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 %} + } } });