diff options
author | Pascal Deklerck <pascal.deklerck@gmail.com> | 2018-12-15 21:19:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2018-12-22 19:51:16 +0100 |
commit | 0e32c86c3dd5bf7ec43ed974d54c2928bcb5e2fe (patch) | |
tree | ec75508f8dc0f646d590b8db630dc92b6487bbb6 | |
parent | 19952264c8eee9cb5a9dac9642bfd28fc34d91df (diff) | |
download | volse-hubzilla-0e32c86c3dd5bf7ec43ed974d54c2928bcb5e2fe.tar.gz volse-hubzilla-0e32c86c3dd5bf7ec43ed974d54c2928bcb5e2fe.tar.bz2 volse-hubzilla-0e32c86c3dd5bf7ec43ed974d54c2928bcb5e2fe.zip |
Update OAuth2Storage.php - fix email retrieval in getUser
(cherry picked from commit 6a825cc504901b6c09724e487f43b5012805c6a0)
-rw-r--r-- | Zotlabs/Identity/OAuth2Storage.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Identity/OAuth2Storage.php b/Zotlabs/Identity/OAuth2Storage.php index bbf61cf2b..a4ba9c526 100644 --- a/Zotlabs/Identity/OAuth2Storage.php +++ b/Zotlabs/Identity/OAuth2Storage.php @@ -64,7 +64,7 @@ class OAuth2Storage extends \OAuth2\Storage\Pdo { return( [ 'webfinger' => channel_reddress($x), 'portable_id' => $x['channel_hash'], - 'email' => $a['account_email'], + 'email' => $a[0]['account_email'], 'username' => $x['channel_address'], 'user_id' => $x['channel_id'], 'name' => $x['channel_name'], |