Updated abuse setting
This commit is contained in:
parent
0a8c030d85
commit
1a8f881328
2 changed files with 3 additions and 1 deletions
|
@ -218,7 +218,7 @@ $utopia->init(function() use ($utopia, $request, $response, $register, &$user, $
|
||||||
}
|
}
|
||||||
|
|
||||||
if($abuse->check()) {
|
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',
|
'failure' => 'http://localhost/failure',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
var_dump();
|
||||||
|
|
||||||
$this->assertEquals('http://localhost/success', $response['headers']['location']);
|
$this->assertEquals('http://localhost/success', $response['headers']['location']);
|
||||||
$this->assertEquals("\n", $response['body']);
|
$this->assertEquals("\n", $response['body']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue