Typos fix
parent
a55a02c209
commit
db97101113
|
@ -11,11 +11,11 @@ class RateLimiter {
|
||||||
public function __construct($database) {
|
public function __construct($database) {
|
||||||
$this->db = $database->getConnection();
|
$this->db = $database->getConnection();
|
||||||
$this->log = new Log($database);
|
$this->log = new Log($database);
|
||||||
$this->createTablesIfNotExists();
|
$this->createTablesIfNotExist();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Database preparation
|
// Database preparation
|
||||||
private function createTablesIfNotExists() {
|
private function createTablesIfNotExist() {
|
||||||
// Login attempts table
|
// Login attempts table
|
||||||
$sql = "CREATE TABLE IF NOT EXISTS {$this->ratelimitTable} (
|
$sql = "CREATE TABLE IF NOT EXISTS {$this->ratelimitTable} (
|
||||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||||
|
|
|
@ -10,7 +10,7 @@ class User {
|
||||||
* @var PDO|null $db The database connection instance.
|
* @var PDO|null $db The database connection instance.
|
||||||
*/
|
*/
|
||||||
private $db;
|
private $db;
|
||||||
private $ratelimiter;
|
private $rateLimiter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User constructor.
|
* User constructor.
|
||||||
|
@ -20,7 +20,7 @@ class User {
|
||||||
*/
|
*/
|
||||||
public function __construct($database) {
|
public function __construct($database) {
|
||||||
$this->db = $database->getConnection();
|
$this->db = $database->getConnection();
|
||||||
$this->ratelimiter = new RateLimiter($database);
|
$this->rateLimiter = new RateLimiter($database);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue