From 6a825cc504901b6c09724e487f43b5012805c6a0 Mon Sep 17 00:00:00 2001 From: Pascal Deklerck Date: Sat, 15 Dec 2018 22:19:18 +0100 Subject: Update OAuth2Storage.php - fix email retrieval in getUser --- Zotlabs/Identity/OAuth2Storage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Zotlabs/Identity') 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'], -- cgit v1.2.3