From d469b54922fc5193def6ac15066a5e394178b8b6 Mon Sep 17 00:00:00 2001
From: Andreas Fernandez <a.fernandez@scripting-base.de>
Date: Wed, 23 Aug 2023 16:30:40 +0200
Subject: [PATCH] [BUGFIX] Swap title and message of notification when creating
 a backend user

When a backend user is created via the Install Tool, a notification is
rendered to tell the system maintainer that the action was successful.
However, the original patch mixed up the title and the message, which is
now fixed.

Resolves: #101741
Related: #91461
Releases: main, 12.4, 11.5
Change-Id: Ie25efa0476a118cfaa99a54d3cb4fe27ca5ef8e7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80676
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: core-ci <typo3@b13.com>
---
 .../install/Classes/Controller/MaintenanceController.php      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typo3/sysext/install/Classes/Controller/MaintenanceController.php b/typo3/sysext/install/Classes/Controller/MaintenanceController.php
index 414a37295b05..365ff8c120a0 100644
--- a/typo3/sysext/install/Classes/Controller/MaintenanceController.php
+++ b/typo3/sysext/install/Classes/Controller/MaintenanceController.php
@@ -601,8 +601,8 @@ class MaintenanceController extends AbstractController
                 }
 
                 $messages->enqueue(new FlashMessage(
-                    'Administrator created',
-                    'An administrator with username "' . $username . '" has been created successfully.'
+                    'An administrator with username "' . $username . '" has been created successfully.',
+                    'Administrator created'
                 ));
             }
         }
-- 
GitLab