1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

fix account error

This commit is contained in:
Damodar Lohani 2021-08-06 18:15:56 +05:45
parent 39de450e47
commit d6f3567a15

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);