3 namespace app\Controller\Github
;
5 use app\Controller\Github
;
7 class Signin
extends Github
9 function __invoke(array $args = null) {
10 $callback = $this->app
->getBaseUrl()->mod("./github/callback");
11 $location = $this->github
->getAuthUrl($callback);
12 $this->app
->redirect($location);
13 if (($returnto = $this->app
->getRequest()->getQuery("returnto"))) {
14 $this->session
->returnto
= $returnto;