1
0
Fork 0
mirror of synced 2024-06-25 09:40:29 +12:00

Updated abuse setting

This commit is contained in:
eldadfux 2019-09-14 15:47:47 +03:00
parent 0a8c030d85
commit 1a8f881328
2 changed files with 3 additions and 1 deletions

View file

@ -218,7 +218,7 @@ $utopia->init(function() use ($utopia, $request, $response, $register, &$user, $
}
if($abuse->check()) {
//throw new Exception('Too many requests', 429);
throw new Exception('Too many requests', 429);
}
});

View file

@ -70,6 +70,8 @@ class ConsoleTest extends TestCase
'failure' => 'http://localhost/failure',
]);
var_dump();
$this->assertEquals('http://localhost/success', $response['headers']['location']);
$this->assertEquals("\n", $response['body']);
}