mirror of
https://github.com/netzbegruenung/user_saml.git
synced 2024-05-02 09:14:50 +02:00
use system email address getter if available
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
10b3e3a30e
commit
59bf8dc6fb
|
@ -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