revert changeUser hook

This commit is contained in:
Alexander Vassilevski 2021-02-21 19:36:54 -08:00
parent 646ff2a029
commit d326b84408

View File

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