From 70930c4142deae008176d5bb82e76f5c074f0192 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Tue, 15 Oct 2024 10:48:44 +0530 Subject: [PATCH 1/2] removed recovery email check --- lib/Listeners/BeforeTemplateRenderedListener.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Listeners/BeforeTemplateRenderedListener.php b/lib/Listeners/BeforeTemplateRenderedListener.php index ff2f37c..d9f26f4 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 === '') { + // $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'); - } + //} } } } -- GitLab From 4a52a377bf8fe137fec832de69057fede4146322 Mon Sep 17 00:00:00 2001 From: Avinash Gusain Date: Tue, 15 Oct 2024 11:02:32 +0530 Subject: [PATCH 2/2] removed recovery email check --- lib/Listeners/BeforeTemplateRenderedListener.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Listeners/BeforeTemplateRenderedListener.php b/lib/Listeners/BeforeTemplateRenderedListener.php index d9f26f4..5a65944 100644 --- a/lib/Listeners/BeforeTemplateRenderedListener.php +++ b/lib/Listeners/BeforeTemplateRenderedListener.php @@ -34,10 +34,10 @@ class BeforeTemplateRenderedListener implements IEventListener { 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'); + $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'); //} } } -- GitLab