From f8d83df56609f8c5628c623d02b4a38c31feb6fa Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 5 Feb 2025 11:26:53 +0930 Subject: [PATCH 1/2] more options to card actions so menu doesn't overflow and use mdl-button--raised --- modules/material/themes/material/default/other_mfas.twig | 2 +- .../themes/material/mfa/prompt-for-mfa-backupcode.twig | 5 +++-- .../themes/material/mfa/prompt-for-mfa-manager.twig | 5 +++-- .../material/themes/material/mfa/prompt-for-mfa-totp.twig | 5 +++-- .../themes/material/mfa/prompt-for-mfa-webauthn.twig | 7 ++++--- 5 files changed, 14 insertions(+), 10 deletions(-) diff --git a/modules/material/themes/material/default/other_mfas.twig b/modules/material/themes/material/default/other_mfas.twig index 7a13cb4d..d9712471 100644 --- a/modules/material/themes/material/default/other_mfas.twig +++ b/modules/material/themes/material/default/other_mfas.twig @@ -11,7 +11,7 @@ {% if other_options|length > 0 %}
{# used type=button to avoid form submission on click since this is just used to display the ul #} -
- - {{ include('other_mfas.twig') }}
diff --git a/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig b/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig index 366950c4..14c5bdf4 100644 --- a/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig +++ b/modules/material/themes/material/mfa/prompt-for-mfa-manager.twig @@ -66,13 +66,14 @@ {% endif %}
+ {{ include('other_mfas.twig') }} + +
- - {{ include('other_mfas.twig') }}
diff --git a/modules/material/themes/material/mfa/prompt-for-mfa-totp.twig b/modules/material/themes/material/mfa/prompt-for-mfa-totp.twig index 47815d0c..8b6dbacb 100644 --- a/modules/material/themes/material/mfa/prompt-for-mfa-totp.twig +++ b/modules/material/themes/material/mfa/prompt-for-mfa-totp.twig @@ -64,13 +64,14 @@ {% endif %}
+ {{ include('other_mfas.twig') }} + +
- - {{ include('other_mfas.twig') }}
diff --git a/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig b/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig index 546991b3..1ee4450b 100644 --- a/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig +++ b/modules/material/themes/material/mfa/prompt-for-mfa-webauthn.twig @@ -123,19 +123,20 @@
+ {{ include('other_mfas.twig') }} + + -
- {{ include('other_mfas.twig') }}
From b1a6e7e035aadb371eba0f9911269f7563a544ab Mon Sep 17 00:00:00 2001 From: Michael Wilson Date: Wed, 5 Feb 2025 12:08:52 +0930 Subject: [PATCH 2/2] replace smartphone with authenticator --- features/fakes/FakeIdBrokerClient.php | 2 +- modules/material/locales/fr/LC_MESSAGES/material.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/features/fakes/FakeIdBrokerClient.php b/features/fakes/FakeIdBrokerClient.php index 5245e2fb..4f97a3d0 100644 --- a/features/fakes/FakeIdBrokerClient.php +++ b/features/fakes/FakeIdBrokerClient.php @@ -143,7 +143,7 @@ public function mfaList(string $employee_id): array [ 'id' => 2, 'type' => 'totp', - 'label' => 'Smartphone App', + 'label' => 'Authenticator App', 'created_utc' => '2019-04-02T16:02:14Z', 'last_used_utc' => '2019-04-01T00:00:00Z', 'data' => [ diff --git a/modules/material/locales/fr/LC_MESSAGES/material.po b/modules/material/locales/fr/LC_MESSAGES/material.po index 4272d54d..3c2a5bb3 100644 --- a/modules/material/locales/fr/LC_MESSAGES/material.po +++ b/modules/material/locales/fr/LC_MESSAGES/material.po @@ -120,7 +120,7 @@ msgid "{mfa:totp_header}" msgstr "Obtenez un code depuis votre application d'authentification" msgid "{mfa:totp_icon}" -msgstr "Icône de l'application Smartphone" +msgstr "Icône de l'application d'authentification" msgid "{mfa:totp_input}" msgstr "Entrer le code à 6 chiffres"