Added configurable lockout for incorrect login attempts (see configuration_sample.php)

This commit is contained in:
Milos Stojanovic
2023-01-20 09:49:03 +01:00
parent 4203b3ca7a
commit 86dcf9fc5f
5 changed files with 61 additions and 6 deletions

View File

@@ -52,7 +52,7 @@ class TestCase extends BaseTestCase
return new App($config, $request, new FakeResponse(), new FakeStreamedResponse(), new Container());
}
public function sendRequest($method, $uri, $data = null, $files = [])
public function sendRequest($method, $uri, $data = null, $files = [], $server = [])
{
$fakeRequest = Request::create(
'?r='.$uri,
@@ -60,10 +60,10 @@ class TestCase extends BaseTestCase
[],
[],
$files,
[
array_replace([
'CONTENT_TYPE' => 'application/json',
'HTTP_ACCEPT' => 'application/json',
],
], $server),
json_encode($data)
);