revert changeUser hook
This commit is contained in:
parent
646ff2a029
commit
d326b84408
@ -21,8 +21,6 @@ class UserHooks {
|
|||||||
'\OC\User', 'preDelete', $this->deleteUserCB());
|
'\OC\User', 'preDelete', $this->deleteUserCB());
|
||||||
$this->userManager->listen(
|
$this->userManager->listen(
|
||||||
'\OC\User', 'postSetPassword', $this->updateEmailPasswordCB());
|
'\OC\User', 'postSetPassword', $this->updateEmailPasswordCB());
|
||||||
$this->userManager->listen(
|
|
||||||
'\OC\User', 'changeUser', $this->changeUserCB());
|
|
||||||
}
|
}
|
||||||
private function createUserCB() {
|
private function createUserCB() {
|
||||||
return function (\OC\User\User $user, string $password) {
|
return function (\OC\User\User $user, string $password) {
|
||||||
@ -80,16 +78,6 @@ class UserHooks {
|
|||||||
"Error updating mail password for account" . $uid);
|
"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) {
|
private function createImapFolders($user_data) {
|
||||||
$server = 'mail.glesys.se';
|
$server = 'mail.glesys.se';
|
||||||
$email = $user_data['email'];
|
$email = $user_data['email'];
|
||||||
|
Loading…
Reference in New Issue
Block a user