projects
/
pharext
/
pharext.org
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
update composer
[pharext/pharext.org]
/
app
/
Controller
/
Github
/
Callback.php
diff --git
a/app/Controller/Github/Callback.php
b/app/Controller/Github/Callback.php
index fcd814f8995388ce93d663126794c1eb41107319..2347d0e67069ca946dbea6c924af10e59b312f06 100644
(file)
--- 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")) {
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();
} else {
$this->validateUser();
@@
-35,7
+33,7
@@
class Callback extends Github
$this->app->redirect($returnto);
} else {
$this->app->redirect(
$this->app->redirect($returnto);
} else {
$this->app->redirect(
- $this->app->getBaseUrl()->mod("./github"));
+ $this->app->getBaseUrl()->mod("
:
./github"));
}
}
$this->app->display("github/callback");
}
}
$this->app->display("github/callback");