From a0858969059fee69e4c2b0693948903d7889e9b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Gro=C3=9Fberndt?= Date: Tue, 10 Mar 2026 11:12:13 +0100 Subject: [PATCH] [BUGFIX] Allow to resend the confirmation email from Registration and ResendConfirmationMail plugin Resending a confirmation email can either be triggered by using a dedicated `ResendConfirmationMail` plugin on a separate page or by manually linking to the `resendConfirmationDialogue` action in a template of the `Registration` plugin. The second option allows to use that action without having to add a page for it. [[BUGFIX] Failing resend frontend view](https://github.com/in2code-de/femanager/commit/a141aa583800af17e9d4d64bb22d7705229fa93d) changed the code to only allow `ResendConfirmationMail`, but both options are valid. --- Classes/Controller/NewController.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/Controller/NewController.php b/Classes/Controller/NewController.php index 99bb7abd4..29aa3c1e0 100644 --- a/Classes/Controller/NewController.php +++ b/Classes/Controller/NewController.php @@ -513,8 +513,13 @@ public function resendConfirmationDialogueAction(): ResponseInterface */ public function resendConfirmationMailAction(): ResponseInterface { + // data may either come from a registration or resendconfirmationmail plugin // @todo find a better way to fetch the data - $result = $this->request->getParsedBody()['tx_femanager_resendconfirmationmail'] ?? $this->request->getQueryParams()['tx_femanager_resendconfirmationmail'] ?? null; + $result = $this->request->getParsedBody()['tx_femanager_resendconfirmationmail'] + ?? $this->request->getQueryParams()['tx_femanager_resendconfirmationmail'] + ?? $this->request->getParsedBody()['tx_femanager_registration'] + ?? $this->request->getQueryParams()['tx_femanager_registration'] + ?? null; if (is_array($result)) { $mail = $result['user']['email'] ?? ''; if ($mail && GeneralUtility::validEmail($mail)) {