From d6f3567a151bf8e42c950e488d3d79949dc9be40 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 6 Aug 2021 18:15:56 +0545 Subject: [PATCH] fix account error --- app/controllers/api/account.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/account.php b/app/controllers/api/account.php index 312fb87f46..197895203f 100644 --- a/app/controllers/api/account.php +++ b/app/controllers/api/account.php @@ -379,7 +379,7 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect') $appSecret = OpenSSL::decrypt($appSecret['data'], $appSecret['method'], $key, 0, \hex2bin($appSecret['iv']), \hex2bin($appSecret['tag'])); } - $classname = 'Appwrite\\Auth\\OAuth2\\' . \ucfirst($provider); + $className = 'Appwrite\\Auth\\OAuth2\\' . \ucfirst($provider); if (!\class_exists($className)) { throw new Exception('Provider is not supported', 501);