X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FController%2FGithub%2FCallback.php;h=5b62faa3251cb9e234c34205119c95879b065f2c;hb=4c462ab66e6c65c15df7bd5fe6d2673884c639a0;hp=ac2ce7b481d2bca63e680769e55833708c8b04e8;hpb=7f4e70ea88d180cfa25f25f3846f842c5958ebf4;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Callback.php b/app/Controller/Github/Callback.php index ac2ce7b..5b62faa 100644 --- a/app/Controller/Github/Callback.php +++ b/app/Controller/Github/Callback.php @@ -18,6 +18,9 @@ class Callback extends Github $this->app->getRequest()->getQuery("state"), function($json) { $this->github->setToken($json->access_token); + $this->github->fetchUser(function($user) { + $this->session->github = $user; + }); })->send(); if (isset($this->session->returnto)) { $this->app->redirect($this->session->returnto);