From b040bc9856ef9ba537c80b091e2a886e4ebeb2ec Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 13 Jun 2022 17:05:52 +0530 Subject: [PATCH 1/2] Update src/Appwrite/Auth/OAuth2/Dailymotion.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matej Bačo --- src/Appwrite/Auth/OAuth2/Dailymotion.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Appwrite/Auth/OAuth2/Dailymotion.php b/src/Appwrite/Auth/OAuth2/Dailymotion.php index e57ef1bd3b..e78bec7fbd 100644 --- a/src/Appwrite/Auth/OAuth2/Dailymotion.php +++ b/src/Appwrite/Auth/OAuth2/Dailymotion.php @@ -215,7 +215,6 @@ class Dailymotion extends OAuth2 ['Authorization: Bearer ' . \urlencode($accessToken)], ); $this->user = \json_decode($user, true); - \var_dump($this->user); } return $this->user; From 9f1b4c41a3106c4193eaabbb9cbb080f3f928230 Mon Sep 17 00:00:00 2001 From: Bishwajeet Parhi <62933155+2002Bishwajeet@users.noreply.github.com> Date: Mon, 13 Jun 2022 17:06:01 +0530 Subject: [PATCH 2/2] Update src/Appwrite/Auth/OAuth2/Dailymotion.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Matej Bačo --- src/Appwrite/Auth/OAuth2/Dailymotion.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Appwrite/Auth/OAuth2/Dailymotion.php b/src/Appwrite/Auth/OAuth2/Dailymotion.php index e78bec7fbd..af3a1d0fc6 100644 --- a/src/Appwrite/Auth/OAuth2/Dailymotion.php +++ b/src/Appwrite/Auth/OAuth2/Dailymotion.php @@ -194,8 +194,6 @@ class Dailymotion extends OAuth2 public function getUserName(string $accessToken): string { $user = $this->getUser($accessToken); - - $username = $user['username'] ?? ''; return $username;