Skip to content
Snippets Groups Projects
Commit bf7afcda authored by Lukas Reschke's avatar Lukas Reschke Committed by GitHub
Browse files

Merge pull request #592 from nextcloud/ldap-avoidneedlesssetemailonlogin

Prevent setting email and triggering events at login time (#25553)
parents 73cdc88e 77df09d5
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment