From aa5042f2d9eed32b464a021cfd52b044252a96de Mon Sep 17 00:00:00 2001 From: Lorenz Ulrich Date: Fri, 12 Jan 2024 18:28:49 +0100 Subject: [PATCH 1/6] TASK: Change module icon to qrcode --- Configuration/Settings.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configuration/Settings.yaml b/Configuration/Settings.yaml index 79954cd..2ce3fb8 100644 --- a/Configuration/Settings.yaml +++ b/Configuration/Settings.yaml @@ -10,7 +10,7 @@ Neos: controller: 'Sandstorm\NeosTwoFactorAuthentication\Controller\BackendController' label: 'Sandstorm.NeosTwoFactorAuthentication:Backend:module.label' description: 'Sandstorm.NeosTwoFactorAuthentication:Backend:module.description' - icon: 'fas fa-lock' + icon: 'fas fa-qrcode' userInterface: translation: From 24db5ff49ce78927a775aacee6a353590818ff5f Mon Sep 17 00:00:00 2001 From: Lorenz Ulrich Date: Fri, 12 Jan 2024 18:30:53 +0100 Subject: [PATCH 2/6] TASK: Use own component for login flash messages and style them --- Configuration/Settings.yaml | 4 ++++ .../Components/LoginFlashMessages.fusion | 9 +++++++++ .../Pages/SetupSecondFactorPage.fusion | 3 +-- Resources/Public/Styles/Login.css | 16 ++++++++++++++++ 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 Resources/Private/Fusion/Presentation/Components/LoginFlashMessages.fusion create mode 100644 Resources/Public/Styles/Login.css diff --git a/Configuration/Settings.yaml b/Configuration/Settings.yaml index 2ce3fb8..5e6c71d 100644 --- a/Configuration/Settings.yaml +++ b/Configuration/Settings.yaml @@ -18,6 +18,10 @@ Neos: 'Sandstorm.NeosTwoFactorAuthentication': - '*' + backendLoginForm: + stylesheets: + 'Sandstorm.NeosTwoFactorAuthentication:AdditionalStyles': 'resource://Sandstorm.NeosTwoFactorAuthentication/Public/Styles/Login.css' + Flow: http: middlewares: diff --git a/Resources/Private/Fusion/Presentation/Components/LoginFlashMessages.fusion b/Resources/Private/Fusion/Presentation/Components/LoginFlashMessages.fusion new file mode 100644 index 0000000..9b22ac0 --- /dev/null +++ b/Resources/Private/Fusion/Presentation/Components/LoginFlashMessages.fusion @@ -0,0 +1,9 @@ +prototype(Sandstorm.NeosTwoFactorAuthentication:Component.LoginFlashMessages) < prototype(Neos.Fusion:Component) { + flashMessages = ${[]} + + renderer = afx` + +
{flashMessage}
+
+ ` +} diff --git a/Resources/Private/Fusion/Presentation/Pages/SetupSecondFactorPage.fusion b/Resources/Private/Fusion/Presentation/Pages/SetupSecondFactorPage.fusion index 6aa7d07..009043d 100644 --- a/Resources/Private/Fusion/Presentation/Pages/SetupSecondFactorPage.fusion +++ b/Resources/Private/Fusion/Presentation/Pages/SetupSecondFactorPage.fusion @@ -75,10 +75,9 @@ prototype(Sandstorm.NeosTwoFactorAuthentication:Page.SetupSecondFactorPage) < pr