diff --git a/lib/Listeners/BeforeTemplateRenderedListener.php b/lib/Listeners/BeforeTemplateRenderedListener.php index ff2f37c3b4f035b1deb4c98e514631fd5ba04c98..5a65944a01d9b8b686640886d0740c46b92d968f 100644 --- a/lib/Listeners/BeforeTemplateRenderedListener.php +++ b/lib/Listeners/BeforeTemplateRenderedListener.php @@ -32,13 +32,13 @@ class BeforeTemplateRenderedListener implements IEventListener { return; } if (($event->getResponse()->getRenderAs() === TemplateResponse::RENDER_AS_USER) && $event->isLoggedIn() && !empty($this->userId)) { - $recoveryEmail = $this->recoveryEmailService->getRecoveryEmail($this->userId); - if ($recoveryEmail === '') { - $unverifiedRecoveryEmail = $this->recoveryEmailService->getUnverifiedRecoveryEmail($this->userId); - $this->initialState->provideInitialState('unverifiedRecoveryEmail', $unverifiedRecoveryEmail); - $this->util->addStyle($this->appName, 'email-recovery'); - $this->util->addScript($this->appName, $this->appName . '-email-recovery'); - } + // $recoveryEmail = $this->recoveryEmailService->getRecoveryEmail($this->userId); + // if ($recoveryEmail === '') { + $unverifiedRecoveryEmail = $this->recoveryEmailService->getUnverifiedRecoveryEmail($this->userId); + $this->initialState->provideInitialState('unverifiedRecoveryEmail', $unverifiedRecoveryEmail); + $this->util->addStyle($this->appName, 'email-recovery'); + $this->util->addScript($this->appName, $this->appName . '-email-recovery'); + //} } } }