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();
$this->app->redirect($returnto);
} else {
$this->app->redirect(
- $this->app->getBaseUrl()->mod("./github"));
+ $this->app->getBaseUrl()->mod(":./github"));
}
}
$this->app->display("github/callback");