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'];