mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 09:42:43 +01:00
Fix redirect loop on Formwork Admin registration
This commit is contained in:
parent
59a54e7010
commit
e0a877db1f
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user