mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 11:26:13 +00:00
MVC, rename 404 page to not_found, make sure authentication failure still redirects to the login page
This commit is contained in:
parent
9fc4cee31f
commit
ae3b64915e
@ -42,8 +42,11 @@ class IndexController extends \OPNsense\Base\IndexController
|
||||
public function indexAction()
|
||||
{
|
||||
$this->view->title = gettext("Page not found");
|
||||
$this->view->pick('OPNsense/Core/index');
|
||||
$this->response->setStatusCode(404, "Not Found");
|
||||
$this->view->pick('OPNsense/Core/not_found');
|
||||
if ( $this->response->getStatusCode() != '302') {
|
||||
// don't send 404 when redirecting to login page
|
||||
$this->response->setStatusCode(404, "Not Found");
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user