From 28035cca52d81c9eeaf18e4295dab58356e75c5f Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Wed, 2 Nov 2022 10:19:05 +0100 Subject: [PATCH] adjust manage key templates for propper layout in flow and wave theme --- .../translations/de/d3webauthn_lang.php | 3 +- .../views/admin/tpl/d3user_webauthn.tpl | 42 +++++------ .../views/tpl/d3_account_webauthn.tpl | 69 ++++++++++--------- src/Application/views/tpl/d3webauthnlogin.tpl | 2 +- src/Setup/Events.php | 4 +- 5 files changed, 62 insertions(+), 58 deletions(-) diff --git a/src/Application/translations/de/d3webauthn_lang.php b/src/Application/translations/de/d3webauthn_lang.php index b6da8c5..31fd5da 100755 --- a/src/Application/translations/de/d3webauthn_lang.php +++ b/src/Application/translations/de/d3webauthn_lang.php @@ -18,7 +18,8 @@ $aLang = array( 'WEBAUTHN_INPUT_HELP' => 'Bitte mit Hardwareschlüssel authentisieren.', 'WEBAUTHN_CANCEL_LOGIN' => 'Anmeldung abbrechen', 'D3_WEBAUTHN_BREADCRUMB' => 'Passwortloses Anmelden', - 'D3_WEBAUTHN_CONF_BROWSER_REQUEST' => 'Bitte die Anfrage des Browsers bestätigen:', + 'D3_WEBAUTHN_CONFIRMATION' => 'Bestätigung erforderlich', + 'D3_WEBAUTHN_CONF_BROWSER_REQUEST' => 'Bitte die Anfrage des Browsers bestätigen.', 'D3_WEBAUTHN_CANCEL' => 'Abbrechen', 'D3_WEBAUTHN_DELETE' => 'Löschen', 'D3_WEBAUTHN_DELETE_CONFIRM' => 'Soll der Schlüssel wirklich gelöscht werden?', diff --git a/src/Application/views/admin/tpl/d3user_webauthn.tpl b/src/Application/views/admin/tpl/d3user_webauthn.tpl index f3f2f66..bcbf258 100755 --- a/src/Application/views/admin/tpl/d3user_webauthn.tpl +++ b/src/Application/views/admin/tpl/d3user_webauthn.tpl @@ -104,14 +104,14 @@ [{block name="user_d3user_totp_registerform"}] -

+

-

@@ -127,26 +127,26 @@
[{oxmultilang ident="D3_WEBAUTHN_REGISTEREDKEYS"}]
-
- [{assign var="list" value=$oView->getCredentialList($oxid)}] - [{if $list|@count}] - - [{else}] + [{assign var="list" value=$oView->getCredentialList($oxid)}] + [{if $list|@count}] + + [{else}] +
[{oxmultilang ident="D3WEBAUTHN_CANCELNOKEYREGISTERED"}]
- [{/if}] -
+
+ [{/if}] [{/block}] diff --git a/src/Application/views/tpl/d3_account_webauthn.tpl b/src/Application/views/tpl/d3_account_webauthn.tpl index f9161fa..612a041 100755 --- a/src/Application/views/tpl/d3_account_webauthn.tpl +++ b/src/Application/views/tpl/d3_account_webauthn.tpl @@ -28,15 +28,18 @@ [{if $pageType === 'requestnew'}]
-
+
[{include file="js_create.tpl"}] -
-
-

+

+
+ [{oxmultilang ident="D3_WEBAUTHN_CONFIRMATION"}] +
+
+

[{oxmultilang ident="D3_WEBAUTHN_CONF_BROWSER_REQUEST"}]

- +
@@ -59,25 +62,25 @@
-
-
+
+
[{block name="user_d3user_totp_registernew"}] -
+
[{oxmultilang ident="D3_WEBAUTHN_ACC_REGISTERNEW"}]
-
+
[{$oViewConf->getHiddenSid()}] [{block name="user_d3user_totp_registerform"}] - -

+

+

-

-

@@ -88,31 +91,31 @@
-
+
[{block name="user_d3user_totp_form2"}] -
+
[{oxmultilang ident="D3_WEBAUTHN_ACC_REGISTEREDKEYS"}]
-
- [{assign var="list" value=$oView->getCredentialList()}] - [{if $list|@count}] - - [{else}] -
+ [{assign var="list" value=$oView->getCredentialList()}] + [{if $list|@count}] + + [{else}] +
+
[{oxmultilang ident="D3_WEBAUTHN_NOKEYREGISTERED"}]
- [{/if}] -
+
+ [{/if}] [{/block}]
diff --git a/src/Application/views/tpl/d3webauthnlogin.tpl b/src/Application/views/tpl/d3webauthnlogin.tpl index d53fb43..46ae04d 100755 --- a/src/Application/views/tpl/d3webauthnlogin.tpl +++ b/src/Application/views/tpl/d3webauthnlogin.tpl @@ -28,7 +28,7 @@ [{$navFormParams}] - diff --git a/src/Setup/Events.php b/src/Setup/Events.php index 98ff3ca..421a0c6 100755 --- a/src/Setup/Events.php +++ b/src/Setup/Events.php @@ -210,8 +210,8 @@ class Events private static function createSeoUrl() { $query = "INSERT INTO `oxseo` (`OXOBJECTID`, `OXIDENT`, `OXSHOPID`, `OXLANG`, `OXSTDURL`, `OXSEOURL`, `OXTYPE`, `OXFIXED`, `OXEXPIRED`, `OXPARAMS`, `OXTIMESTAMP`) VALUES - ('ff57646b47249ee33c6b672741ac371a', 'be07f06fe03a4d5d7936f2eac5e3a87b', 1, 1, 'index.php?cl=d3_account_webauthn', 'en/key-authintication/', 'static', 0, 0, '', NOW()), - ('ff57646b47249ee33c6b672741ac371a', '220a1af77362196789eeed4741dda184', 1, 0, 'index.php?cl=d3_account_webauthn', 'key-authentisierung/', 'static', 0, 0, '', NOW());"; + ('ff57646b47249ee33c6b672741ac371a', 'be07f06fe03a4d5d7936f2eac5e3a87b', 1, 1, 'index.php?cl=d3_account_webauthn', 'en/key-authentication/', 'static', 0, 0, '', NOW()), + ('ff57646b47249ee33c6b672741ac371a', '220a1af77362196789eeed4741dda184', 1, 0, 'index.php?cl=d3_account_webauthn', 'sicherheitsschluessel/', 'static', 0, 0, '', NOW());"; DatabaseProvider::getDb()->execute($query); }