Update OAuth2Storage.php - fix email retrieval in getUser

(cherry picked from commit 6a825cc504)
This commit is contained in:
Pascal Deklerck 2018-12-15 21:19:18 +00:00 committed by Mario
parent 19952264c8
commit 0e32c86c3d

View File

@ -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'],