From 89e4859cb1c9a43c6e54047e0711dfdb94211d48 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 23 Nov 2017 13:53:31 +0200 Subject: [PATCH] Change duplicate check back to 1 sec --- app/Http/Middleware/DuplicateSubmissionCheck.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Middleware/DuplicateSubmissionCheck.php b/app/Http/Middleware/DuplicateSubmissionCheck.php index 49036c8eb5..813ac8e172 100644 --- a/app/Http/Middleware/DuplicateSubmissionCheck.php +++ b/app/Http/Middleware/DuplicateSubmissionCheck.php @@ -30,7 +30,7 @@ class DuplicateSubmissionCheck $lastPage = session(SESSION_LAST_REQUEST_PAGE); $lastTime = session(SESSION_LAST_REQUEST_TIME); - if ($lastPage == $path && (microtime(true) - $lastTime <= 2)) { + if ($lastPage == $path && (microtime(true) - $lastTime <= 1)) { return redirect('/')->with('warning', trans('texts.duplicate_post')); }