mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 09:14:50 +02:00
Merge pull request #542 from nextcloud/enh/noid/user-system-mail-getter
This commit is contained in:
commit
6e8866c1be
|
@ -637,7 +637,7 @@ class UserBackend implements IApacheBackend, UserInterface, IUserBackend {
|
|||
}
|
||||
|
||||
if ($user !== null) {
|
||||
$currentEmail = (string)$user->getEMailAddress();
|
||||
$currentEmail = (string)(method_exists($user, 'getSystemEMailAddress') ? $user->getSystemEMailAddress() : $user->getEMailAddress());
|
||||
if ($newEmail !== null
|
||||
&& $currentEmail !== $newEmail) {
|
||||
$user->setEMailAddress($newEmail);
|
||||
|
|
Loading…
Reference in a new issue