Loading lib/Listeners/BeforeUserDeletedListener.php +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class BeforeUserDeletedListener implements IEventListener { try { $this->logger->info("PostDelete user {user}", array('user' => $uid)); $this->userService->deleteEcloudMailFolder($email); $this->userService->deleteEmailAccount($email); } catch (Exception $e) { $this->logger->error('Error deleting mail folder for user '. $uid . ' :' . $e->getMessage()); } Loading lib/Service/UserService.php +2 −2 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ class UserService { * @param $welcomeSecret string generated at ecloud selfhosting install and added as a custom var in NC's config * @return mixed response of the external endpoint */ public function deleteEcloudMailFolder(string $email) { public function deleteEmailAccount(string $email) { $commonServicesURL = $this->apiConfig['commonServicesURL']; $commonApiVersion = $this->apiConfig['commonApiVersion']; Loading @@ -148,7 +148,7 @@ class UserService { $endpoint = $commonApiVersion . '/emails/' . $email; $url = $commonServicesURL . $endpoint; // DELETE /v2/emails/@email $this->logger->info("deleteMailFolder for URL ".$url); $params = []; $token = $this->apiConfig['commonServicesToken']; Loading Loading
lib/Listeners/BeforeUserDeletedListener.php +1 −1 Original line number Diff line number Diff line Loading @@ -47,7 +47,7 @@ class BeforeUserDeletedListener implements IEventListener { try { $this->logger->info("PostDelete user {user}", array('user' => $uid)); $this->userService->deleteEcloudMailFolder($email); $this->userService->deleteEmailAccount($email); } catch (Exception $e) { $this->logger->error('Error deleting mail folder for user '. $uid . ' :' . $e->getMessage()); } Loading
lib/Service/UserService.php +2 −2 Original line number Diff line number Diff line Loading @@ -138,7 +138,7 @@ class UserService { * @param $welcomeSecret string generated at ecloud selfhosting install and added as a custom var in NC's config * @return mixed response of the external endpoint */ public function deleteEcloudMailFolder(string $email) { public function deleteEmailAccount(string $email) { $commonServicesURL = $this->apiConfig['commonServicesURL']; $commonApiVersion = $this->apiConfig['commonApiVersion']; Loading @@ -148,7 +148,7 @@ class UserService { $endpoint = $commonApiVersion . '/emails/' . $email; $url = $commonServicesURL . $endpoint; // DELETE /v2/emails/@email $this->logger->info("deleteMailFolder for URL ".$url); $params = []; $token = $this->apiConfig['commonServicesToken']; Loading