1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Increase DuplicateSubmissionCheck time

This commit is contained in:
Hillel Coren 2017-11-20 10:56:21 +02:00
parent 1222c4ebad
commit d9facaa060

View File

@ -30,7 +30,7 @@ class DuplicateSubmissionCheck
$lastPage = session(SESSION_LAST_REQUEST_PAGE);
$lastTime = session(SESSION_LAST_REQUEST_TIME);
if ($lastPage == $path && (microtime(true) - $lastTime <= 1)) {
if ($lastPage == $path && (microtime(true) - $lastTime <= 2)) {
return redirect('/')->with('warning', trans('texts.duplicate_post'));
}