From bc5ae7653480ecc760f6dadb0545d9d64a4eb16b Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Mon, 6 Jan 2025 11:31:07 +0200 Subject: [PATCH] Ratelimiter database call fix --- app/pages/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pages/login.php b/app/pages/login.php index 0eb3ae1..6adedc2 100644 --- a/app/pages/login.php +++ b/app/pages/login.php @@ -23,7 +23,7 @@ try { // Initialize RateLimiter require_once '../app/classes/ratelimiter.php'; - $rateLimiter = new RateLimiter($dbWeb); + $rateLimiter = new RateLimiter($dbWeb['db']); if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) { try {