Merge pull request #594 from nextcloud/ldap-avoidneedlesssetemailonlogin-stable9
[stable9] Prevent setting email and triggering events at login time (#25531)
This commit is contained in:
commit
76d76121ae
|
@ -434,9 +434,12 @@ class User {
|
||||||
}
|
}
|
||||||
if(!is_null($email)) {
|
if(!is_null($email)) {
|
||||||
$user = $this->userManager->get($this->uid);
|
$user = $this->userManager->get($this->uid);
|
||||||
|
$currentEmail = $user->getEMailAddress();
|
||||||
|
if ($currentEmail !== $email) {
|
||||||
$user->setEMailAddress($email);
|
$user->setEMailAddress($email);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fetches the quota from LDAP and stores it as ownCloud user value
|
* fetches the quota from LDAP and stores it as ownCloud user value
|
||||||
|
|
Loading…
Reference in New Issue