diff --git a/views/twig/admin/d3totplogin.html.twig b/views/twig/admin/d3totplogin.html.twig index a6f88b0..8683c78 100644 --- a/views/twig/admin/d3totplogin.html.twig +++ b/views/twig/admin/d3totplogin.html.twig @@ -4,17 +4,17 @@ {{ translate({ ident: "LOGIN_TITLE" }) }} - - - + + +
- + -
+ {% block admin_login_form %} {{ oViewConf.getHiddenSid()|raw }} @@ -30,7 +30,7 @@ {% include "inc_error.html.twig" with {Errorlist: Errors.default} %} {% endif %} - {{ oView.getBackupCodeCountMessage() }} + {{ oView.getBackupCodeCountMessage()|raw }}
@@ -47,7 +47,7 @@
- {% capture name = "d3js" %} + {% set name = "d3js" %} function clickEvent(previous, next){ const digitKeys = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']; const deleteKeys = ['Backspace', 'Delete']; @@ -67,8 +67,8 @@ }); } }); - {% endcapture %} - {{ script({ add: smarty.capture.d3js, dynamic: __oxid_include_dynamic }) }} + {% endset %} + {{ script({ add: d3js, dynamic: __oxid_include_dynamic }) }}
{{ translate({ ident: "TOTP_INPUT_HELP" }) }}
@@ -78,44 +78,10 @@ onclick="document.getElementById('login').fnc.value='d3CancelLogin'; document.getElementById('login').submit();" > - {{ style({ include: oViewConf.getModuleUrl('d3totp',, out/admin/src/css/d3totplogin.css'): 'out/admin/src/css/d3totplogin.css') }) }} + {{ style({ include: oViewConf.getModuleUrl('d3totp', 'out/admin/src/css/d3totplogin.css'): 'out/admin/src/css/d3totplogin.css') }) }} + {{ style() }} - - -{# * - - - - - - {{ oViewConf.getHiddenSid()|raw }} - - - - - {% if not empty(Errors.default) %} - {% include "inc_error.html.twig" with {Errorlist: Errors.default} %} - {% endif %} - -
-
- {% include $oViewConf->getModulePath('d3webauthn', with {out/img/fingerprint.svg'): 'out/img/fingerprint.svg')} %} -
-
{{ translate({ ident: "WEBAUTHN_INPUT_HELP" }) }}
-
-* #} - {# prevent cancel button (1st button) action when form is sent via Enter key #} -{# * - - - - - {{ style({ include: oViewConf.getModuleUrl('d3webauthn',, out/admin/src/css/d3webauthnlogin.css'): 'out/admin/src/css/d3webauthnlogin.css') }) }} - {{ style() }} -* #} {% endblock %}
diff --git a/views/twig/admin/d3user_totp.html.twig b/views/twig/admin/d3user_totp.html.twig index 6e641cf..9720621 100644 --- a/views/twig/admin/d3user_totp.html.twig +++ b/views/twig/admin/d3user_totp.html.twig @@ -37,13 +37,13 @@ {% endif %} -
+ {{ oViewConf.getHiddenSid()|raw }}
-
+ {{ oViewConf.getHiddenSid()|raw }}