From d326b8440866713753b2edfc0012c5eca4941a35 Mon Sep 17 00:00:00 2001 From: Alexander Vassilevski Date: Sun, 21 Feb 2021 19:36:54 -0800 Subject: [PATCH] revert changeUser hook --- lib/Hooks/UserHooks.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Hooks/UserHooks.php b/lib/Hooks/UserHooks.php index 2d54366..358fc51 100644 --- a/lib/Hooks/UserHooks.php +++ b/lib/Hooks/UserHooks.php @@ -21,8 +21,6 @@ class UserHooks { '\OC\User', 'preDelete', $this->deleteUserCB()); $this->userManager->listen( '\OC\User', 'postSetPassword', $this->updateEmailPasswordCB()); - $this->userManager->listen( - '\OC\User', 'changeUser', $this->changeUserCB()); } private function createUserCB() { return function (\OC\User\User $user, string $password) { @@ -80,16 +78,6 @@ class UserHooks { "Error updating mail password for account" . $uid); }; } - private function changeUserCB() { - return function (\OC\User\User $user, $feature, $value) { - $this->logger->warning( - "User: " . print_r($user, 1), $this->logContext); - $this->logger->warning( - "Feature: " . print_r($feature, 1), $this->logContext); - $this->logger->warning( - "Value: " . print_r($value, 1), $this->logContext); - }; - } private function createImapFolders($user_data) { $server = 'mail.glesys.se'; $email = $user_data['email'];