diff --git a/app/classes/ratelimitrer.php b/app/classes/ratelimitrer.php index 7b35d2a..32f411e 100644 --- a/app/classes/ratelimitrer.php +++ b/app/classes/ratelimitrer.php @@ -11,11 +11,11 @@ class RateLimiter { public function __construct($database) { $this->db = $database->getConnection(); $this->log = new Log($database); - $this->createTablesIfNotExists(); + $this->createTablesIfNotExist(); } // Database preparation - private function createTablesIfNotExists() { + private function createTablesIfNotExist() { // Login attempts table $sql = "CREATE TABLE IF NOT EXISTS {$this->ratelimitTable} ( id INTEGER PRIMARY KEY AUTOINCREMENT, diff --git a/app/classes/user.php b/app/classes/user.php index e058798..515d78e 100644 --- a/app/classes/user.php +++ b/app/classes/user.php @@ -10,7 +10,7 @@ class User { * @var PDO|null $db The database connection instance. */ private $db; - private $ratelimiter; + private $rateLimiter; /** * User constructor. @@ -20,7 +20,7 @@ class User { */ public function __construct($database) { $this->db = $database->getConnection(); - $this->ratelimiter = new RateLimiter($database); + $this->rateLimiter = new RateLimiter($database); }