Fix redirect loop on Formwork Admin registration

This commit is contained in:
Giuseppe Criscione 2018-09-27 22:34:30 +02:00
parent 59a54e7010
commit e0a877db1f

View File

@ -80,7 +80,7 @@ class Admin
}
if ($this->users->isEmpty()) {
$this->registerAdmin();
return $this->registerAdmin();
}
if (!$this->isLoggedIn() && HTTPRequest::uri() !== '/login/') {
@ -129,7 +129,7 @@ class Admin
$this->redirectToPanel(302, true);
}
$controller = new Controllers\Register();
return $controller->register();
$controller->register();
}
protected function loadRoutes()