Monkeys are hard at work to find it for you!
Or you could try on your own.
From cd7152c684cd8bc3281a59fe99ae85ed74356923 Mon Sep 17 00:00:00 2001
From: DariusIII
You must wait %s seconds before trying again.', - $seconds - ) - ); + $this->show503(); } /** @@ -291,6 +286,15 @@ class BasePage die(view('errors.maintenance')); } + /** + * Show Security token mismatch page. + */ + public function showTokenError(): void + { + header('HTTP/1.1 503 Service Temporarily Unavailable'); + die(view('errors.tokenError')); + } + /** * @param string $retry */ diff --git a/public/pages/login.php b/public/pages/login.php index 864565c46..f4eb01dba 100644 --- a/public/pages/login.php +++ b/public/pages/login.php @@ -41,7 +41,7 @@ if (!isset($_POST['username']) || !isset($_POST['password'])) { $logging->LogBadPasswd($username, $_SERVER['REMOTE_ADDR']); } } else { - $page->show503('Security token mismatch!'); + $page->showTokenError(); } } diff --git a/public/pages/register.php b/public/pages/register.php index 30aa51e51..e68e729e4 100644 --- a/public/pages/register.php +++ b/public/pages/register.php @@ -84,7 +84,7 @@ if ($showRegister === 1) { } } } else { - $page->show503('Security token mismatch'); + $page->showTokenError(); } } break; diff --git a/resources/views/errors/404.blade.php b/resources/views/errors/404.blade.php index eead42205..0f4ed944b 100644 --- a/resources/views/errors/404.blade.php +++ b/resources/views/errors/404.blade.php @@ -1,43 +1,9 @@ - - -
-