diff --git a/Classes/Controller/UserBackendController.php b/Classes/Controller/UserBackendController.php index 25be0d606..8c22716ff 100644 --- a/Classes/Controller/UserBackendController.php +++ b/Classes/Controller/UserBackendController.php @@ -144,7 +144,13 @@ public function userLogoutAction(User $user): ResponseInterface } UserUtility::removeFrontendSessionToUser($user); - $this->addFlashMessage('User successfully logged out'); + $this->addFlashMessage( + LocalizationUtility::translate( + 'BackendConfirmationFlashMessageLogout', + 'femanager', + [$user->getUsername()] + ) + ); return $this->redirect('list'); } @@ -166,8 +172,7 @@ public function confirmUserAction(int $userIdentifier): ResponseInterface 'BackendConfirmationFlashMessageConfirmed', 'femanager', [$user->getUsername()] - ), - 'User Confirmation' + ) ); } else { $this->addFlashMessage( @@ -176,7 +181,7 @@ public function confirmUserAction(int $userIdentifier): ResponseInterface 'femanager', [$user->getUsername()] ), - 'User Confirmation', + '', ContextualFeedbackSeverity::ERROR ); } @@ -220,7 +225,7 @@ public function refuseUserAction(int $userIdentifier): ResponseInterface 'femanager', [$user->getUsername()] ), - 'User Confirmation', + '', ContextualFeedbackSeverity::ERROR ); } @@ -283,11 +288,8 @@ public function getConfigPID(): int } $this->addFlashMessage( - LocalizationUtility::translate( - 'BackendMissingConfigPID', - 'femanager' - ), - 'Backend Configuration', + LocalizationUtility::translate('BackendMissingConfigPID'), + '', ContextualFeedbackSeverity::ERROR ); @@ -332,11 +334,8 @@ public function getFrontendRequestResult(string $status, int $userIdentifier, Us $content = $response->getReasonPhrase(); $GLOBALS['BE_USER']->writelog(4, 0, 1, 0, 'femanager: Frontend request failed.', $content); $this->addFlashMessage( - LocalizationUtility::translate( - 'BackendConfirmationFlashMessageFailed', - 'femanager' - ), - 'User Confirmation', + LocalizationUtility::translate('BackendConfirmationFlashMessageFailed'), + '', ContextualFeedbackSeverity::ERROR ); } else { diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index 723a5cd17..cd92b191e 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -689,6 +689,9 @@ UID + + %s was successfully logged out + %s was successfully approved diff --git a/Resources/Private/Layouts/Backend.html b/Resources/Private/Layouts/Backend.html index ac00b9732..fc48660a3 100644 --- a/Resources/Private/Layouts/Backend.html +++ b/Resources/Private/Layouts/Backend.html @@ -44,13 +44,7 @@
- -
- -
{flashMessage.message}
-
-
-
+