Initial commit: Cloud Control Panel
This commit is contained in:
13
db/migration/003_create_login_throttle.php
Executable file
13
db/migration/003_create_login_throttle.php
Executable file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
return function (PDO $db): void {
|
||||
$db->exec("
|
||||
CREATE TABLE IF NOT EXISTS login_throttle (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
ip TEXT NOT NULL,
|
||||
attempts INTEGER NOT NULL DEFAULT 1,
|
||||
last_attempt INTEGER NOT NULL
|
||||
);
|
||||
");
|
||||
};
|
||||
Reference in New Issue
Block a user