mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Change duplicate check back to 1 sec
This commit is contained in:
parent
34d8b68f63
commit
89e4859cb1
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user