From 1a8f88132831cc696f369207b6b85661d202ee96 Mon Sep 17 00:00:00 2001 From: eldadfux Date: Sat, 14 Sep 2019 15:47:47 +0300 Subject: [PATCH] Updated abuse setting --- app/app.php | 2 +- tests/e2e/ConsoleTest.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/app.php b/app/app.php index a4ec85237..e373abd75 100644 --- a/app/app.php +++ b/app/app.php @@ -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); } }); diff --git a/tests/e2e/ConsoleTest.php b/tests/e2e/ConsoleTest.php index 11f032806..0da51a878 100644 --- a/tests/e2e/ConsoleTest.php +++ b/tests/e2e/ConsoleTest.php @@ -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']); }