Skip to content
Snippets Groups Projects
Verified Commit 8d57e3bf authored by Andrej Ramašeuski's avatar Andrej Ramašeuski
Browse files

Move octopussy callback to login

parent dce91d04
No related branches found
No related tags found
No related merge requests found
0.2.0
0.2.1
......@@ -110,6 +110,11 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://chobotnice.pirati.cz/import-person/" . $result['sub'] . "/");
curl_exec($ch);
curl_close($ch);
return $result['sub'];
}
......@@ -138,11 +143,6 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
}
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://chobotnice.pirati.cz/import-person/" . $result['sub'] . "/");
curl_exec($ch);
curl_close($ch);
return $result['sub'];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment