X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=app%2FController%2FGithub%2FSignin.php;h=2370bc6840e5ce21bbb902d61d8827c2424b3ed0;hb=f225ef52aa75fe977899cc3e3d5af448f364c81b;hp=5f8b6a7709944527d477e9a75b0077796db97875;hpb=8b9e6a11bae0db302dd100ce288b07ef7995e372;p=pharext%2Fpharext.org diff --git a/app/Controller/Github/Signin.php b/app/Controller/Github/Signin.php index 5f8b6a7..2370bc6 100644 --- a/app/Controller/Github/Signin.php +++ b/app/Controller/Github/Signin.php @@ -45,6 +45,9 @@ class Signin extends Github } } $callback = $this->app->getBaseUrl()->mod(":./github/callback"); + if (empty($callback->scheme)) { + $callback->scheme = "https"; + } $location = $this->github->getAuthUrl($callback); $this->app->redirect($location); if (($returnto = $this->app->getRequest()->getQuery("returnto"))) {