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

Bugfix

parent 6302bbfc
No related branches found
No related tags found
No related merge requests found
0.3.0 0.3.1
...@@ -77,10 +77,10 @@ class pirati extends \phpbb\auth\provider\oauth\service\base ...@@ -77,10 +77,10 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
} }
function octopussy_callback() function octopussy_callback( $uid )
{ {
$ch = curl_init(); $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://chobotnice.pirati.cz/import-person/" . $result['sub'] . "/"); curl_setopt($ch, CURLOPT_URL, "https://chobotnice.pirati.cz/import-person/" . $uid . "/");
curl_exec($ch); curl_exec($ch);
curl_close($ch); curl_close($ch);
} }
...@@ -120,7 +120,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base ...@@ -120,7 +120,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR'); throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
} }
octopussy_callback(); $this->octopussy_callback($result['sub']);
return $result['sub']; return $result['sub'];
} }
...@@ -149,7 +149,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base ...@@ -149,7 +149,7 @@ class pirati extends \phpbb\auth\provider\oauth\service\base
throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR'); throw new \phpbb\auth\provider\oauth\service\exception('AUTH_PROVIDER_OAUTH_RETURN_ERROR');
} }
octopussy_callback(); $this->octopussy_callback($result['sub']);
return $result['sub']; return $result['sub'];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment