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();
<?php $this->layout("layout") ?>
+<?php if (isset($error)) : ?>
+<div class="alert alert-warning">
+ <p><?= $this->e($error_description) ?></p>
+ <p>Github error: <a href="<?= $this->e($error_uri)?>"><?= $this->e($error) ?></a></p>
+</div>
+<?php endif; ?>