Skip to content

Commit

Permalink
Fix deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
zorn-v committed Nov 6, 2021
1 parent c37406a commit 54ff473
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<name>Social Login</name>
<summary>Social login via OAuth or OpenID</summary>
<description> </description>
<version>4.9.2</version>
<version>4.9.3</version>
<licence>agpl</licence>
<author>zorn-v</author>
<namespace>SocialLogin</namespace>
Expand Down
6 changes: 5 additions & 1 deletion lib/Service/ProviderService.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,11 @@ private function login($uid, Profile $profile, $newGroupPrefix = '')

if ($updateUserProfile) {
$user->setDisplayName($profile->displayName ?: $profile->identifier);
$user->setEMailAddress((string)$profile->email);
if (method_exists($user, 'setSystemEMailAddress')) {
$user->setSystemEMailAddress((string)$profile->email);
} else {
$user->setEMailAddress((string)$profile->email);
}

if ($profile->photoURL) {
$curl = new Curl();
Expand Down

0 comments on commit 54ff473

Please sign in to comment.