Skip to content

Commit a085896

Browse files
committed
[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](a141aa5) changed the code to only allow `ResendConfirmationMail`, but both options are valid.
1 parent 6864171 commit a085896

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Classes/Controller/NewController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,8 +513,13 @@ public function resendConfirmationDialogueAction(): ResponseInterface
513513
*/
514514
public function resendConfirmationMailAction(): ResponseInterface
515515
{
516+
// data may either come from a registration or resendconfirmationmail plugin
516517
// @todo find a better way to fetch the data
517-
$result = $this->request->getParsedBody()['tx_femanager_resendconfirmationmail'] ?? $this->request->getQueryParams()['tx_femanager_resendconfirmationmail'] ?? null;
518+
$result = $this->request->getParsedBody()['tx_femanager_resendconfirmationmail']
519+
?? $this->request->getQueryParams()['tx_femanager_resendconfirmationmail']
520+
?? $this->request->getParsedBody()['tx_femanager_registration']
521+
?? $this->request->getQueryParams()['tx_femanager_registration']
522+
?? null;
518523
if (is_array($result)) {
519524
$mail = $result['user']['email'] ?? '';
520525
if ($mail && GeneralUtility::validEmail($mail)) {

0 commit comments

Comments
 (0)