-
Notifications
You must be signed in to change notification settings - Fork 122
Milestone
Description
The default sender address for the admin confirmation mail is the user mail address. If the domain of this email uses SPF in "Fail" mode, the mail will be rejected and a non delivery notification is sent to the user.
Now the user can confirm the admin mail himself.
femanager/Classes/Controller/NewController.php
Lines 300 to 330 in eb25eec
| protected function createAdminConfirmationRequest(User $user) | |
| { | |
| $aacService = $this->objectManager->get( | |
| AutoAdminConfirmationService::class, | |
| $user, | |
| $this->settings, | |
| $this->contentObject | |
| ); | |
| if ($aacService->isAutoAdminConfirmationFullfilled()) { | |
| $user->setDisable(false); | |
| $this->signalSlotDispatcher->dispatch(__CLASS__, __FUNCTION__ . 'AutoConfirmation', [$user, $this]); | |
| $this->createAllConfirmed($user); | |
| } else { | |
| $this->signalSlotDispatcher->dispatch(__CLASS__, __FUNCTION__ . 'ManualConfirmation', [$user, $this]); | |
| $this->sendMailService->send( | |
| 'createAdminConfirmation', | |
| StringUtility::makeEmailArray( | |
| $this->settings['new']['confirmByAdmin'], | |
| $this->settings['new']['email']['createAdminConfirmation']['receiver']['name']['value'] | |
| ), | |
| StringUtility::makeEmailArray($user->getEmail(), $user->getUsername()), | |
| 'New Registration request', | |
| [ | |
| 'user' => $user, | |
| 'hash' => HashUtility::createHashForUser($user) | |
| ], | |
| $this->config['new.']['email.']['createAdminConfirmation.'] | |
| ); | |
| $this->addFlashMessage(LocalizationUtility::translate('createRequestWaitingForAdminConfirm')); | |
| } | |
| } |
Reactions are currently unavailable