X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FController%2FGithub%2FCallback.php;h=646d782f20d52c59676efdbd23a72a39ddd3c5ba;hb=36cfa28cf2dcee3422f0231f91c6692eb28e7824;hp=496baf331f9973def275201755e1ad658ca51c3c;hpb=07b87ac26f62bc3c069bb16983fe7500272e19b4;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Callback.php b/app/Controller/Github/Callback.php index 496baf3..646d782 100644 --- a/app/Controller/Github/Callback.php +++ b/app/Controller/Github/Callback.php @@ -4,14 +4,12 @@ namespace app\Controller\Github; use app\Controller\Github; use app\Github\API; -use app\Github\Exception; use app\Model\Accounts; use app\Session; use app\Web; class Callback extends Github { - /** * @var Accounts */ @@ -33,7 +31,7 @@ class Callback extends Github $this->app->getRequest()->getQuery("state"), function($token) { $this->github->setToken($token->access_token); - $this->github->fetchUser($this->createUserCallback($token)); + $this->github->readAuthUser($this->createUserCallback($token)); })->send(); if (isset($this->session->returnto)) { $returnto = $this->session->returnto;