mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #593 from nextcloud/ldap-avoidneedlesssetemailonlogin-stable10
[stable10] Prevent setting email and triggering events at login time (#25554)
This commit is contained in:
commit
481418ff40
1 changed files with 4 additions and 1 deletions
|
|
@ -435,7 +435,10 @@ class User {
|
|||
if(!is_null($email)) {
|
||||
$user = $this->userManager->get($this->uid);
|
||||
if (!is_null($user)) {
|
||||
$user->setEMailAddress($email);
|
||||
$currentEmail = $user->getEMailAddress();
|
||||
if ($currentEmail !== $email) {
|
||||
$user->setEMailAddress($email);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue