From d96be650e4757a304af208d0c3471bc7c1587398 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi Date: Mon, 11 Jul 2022 12:40:17 +0000 Subject: [PATCH] change to name --- composer.lock | 12 ++++++------ src/Appwrite/Auth/OAuth2/Disqus.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/composer.lock b/composer.lock index 9d29bc8ac7..4e7a77a447 100644 --- a/composer.lock +++ b/composer.lock @@ -2051,16 +2051,16 @@ }, { "name": "utopia-php/database", - "version": "0.18.6", + "version": "0.18.7", "source": { "type": "git", "url": "https://github.com/utopia-php/database.git", - "reference": "e9e163642546343267c2fe0ee90016a4a0230b4a" + "reference": "d542ee433f1a545d926ffaf707bdf952dc18a52e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/database/zipball/e9e163642546343267c2fe0ee90016a4a0230b4a", - "reference": "e9e163642546343267c2fe0ee90016a4a0230b4a", + "url": "https://api.github.com/repos/utopia-php/database/zipball/d542ee433f1a545d926ffaf707bdf952dc18a52e", + "reference": "d542ee433f1a545d926ffaf707bdf952dc18a52e", "shasum": "" }, "require": { @@ -2109,9 +2109,9 @@ ], "support": { "issues": "https://github.com/utopia-php/database/issues", - "source": "https://github.com/utopia-php/database/tree/0.18.6" + "source": "https://github.com/utopia-php/database/tree/0.18.7" }, - "time": "2022-06-27T17:28:05+00:00" + "time": "2022-07-11T10:20:33+00:00" }, { "name": "utopia-php/domains", diff --git a/src/Appwrite/Auth/OAuth2/Disqus.php b/src/Appwrite/Auth/OAuth2/Disqus.php index d9b98bd32e..5d9c9feace 100644 --- a/src/Appwrite/Auth/OAuth2/Disqus.php +++ b/src/Appwrite/Auth/OAuth2/Disqus.php @@ -110,7 +110,7 @@ class Disqus extends OAuth2 { $user = $this->getUser($accessToken); - $username = $user['response']['username'] ?? ''; + $username = $user['response']['name'] ?? ''; return $username; }