From bbbcf271fe1c449a4a3b175dddf93c9366613f19 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 20 May 2021 15:21:56 +0200 Subject: [PATCH 1/2] remove otp token from login page, depending on Setting --- powerdnsadmin/templates/login.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerdnsadmin/templates/login.html b/powerdnsadmin/templates/login.html index ffa57a9..6352caa 100644 --- a/powerdnsadmin/templates/login.html +++ b/powerdnsadmin/templates/login.html @@ -46,9 +46,11 @@ data-error="Please input your password" required {% if password %}value="{{ password }}" {% endif %}> + {% if SETTING.get('otp_token_enabled') %}
+ {% endif %} {% if SETTING.get('ldap_enabled') and SETTING.get('local_db_enabled') %}