mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge branch '1.5.x' into fix-templates-copy-hidden-files
This commit is contained in:
@@ -934,12 +934,12 @@ App::get('/v1/account/sessions/oauth2/:provider/redirect')
|
||||
->setPayload($response->output($session, Response::MODEL_SESSION))
|
||||
;
|
||||
|
||||
// TODO: Remove this deprecated, undocumented workaround
|
||||
// TODO: Remove this deprecated workaround - support only token
|
||||
if ($state['success']['path'] == $oauthDefaultSuccess) {
|
||||
$query['project'] = $project->getId();
|
||||
$query['domain'] = Config::getParam('cookieDomain');
|
||||
$query['key'] = Auth::$cookieName;
|
||||
$query['secret'] = $secret;
|
||||
$query['secret'] = Auth::encodeSession($user->getId(), $secret);
|
||||
}
|
||||
|
||||
$response
|
||||
|
||||
Reference in New Issue
Block a user