fix account error

This commit is contained in:
Damodar Lohani
2021-08-06 18:15:56 +05:45
parent 39de450e47
commit d6f3567a15
+1 -1
View File
@@ -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);