From: Michael Wallner Date: Tue, 8 Oct 2019 13:32:59 +0000 (+0200) Subject: simplify error X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=96da0fd4e37ae211394415d381413514edece6c7;p=pharext%2Fpharext.org simplify error --- diff --git a/app/Controller/Github/Callback.php b/app/Controller/Github/Callback.php index bd8c0e5..2347d0e 100644 --- a/app/Controller/Github/Callback.php +++ b/app/Controller/Github/Callback.php @@ -23,9 +23,7 @@ class Callback extends Github function __invoke(array $args = null) { if ($this->app->getRequest()->getQuery("error")) { - $this->app->getView()->addData([ - "error" => $this->app->getRequest()->getQuery("error_description") - ]); + $this->app->getView()->addData($this->app->getRequest()->getQuery()->toArray()); } else { $this->validateUser(); diff --git a/app/views/github/callback.phtml b/app/views/github/callback.phtml index fae0bae..dde4896 100644 --- a/app/views/github/callback.phtml +++ b/app/views/github/callback.phtml @@ -1,2 +1,8 @@ layout("layout") ?> + +
+

e($error_description) ?>

+

Github error: e($error) ?>

+
+