Updated abuse setting
This commit is contained in:
parent
0a8c030d85
commit
1a8f881328
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue