Publier Globinours 1.0.0-rc.3
This commit is contained in:
parent
ea8c24d622
commit
9a2b4068da
325 changed files with 38230 additions and 20 deletions
8
migrations/085_login_security.sql
Normal file
8
migrations/085_login_security.sql
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
CREATE TABLE IF NOT EXISTS login_attempts (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
username_hash TEXT NOT NULL,
|
||||
ip_address TEXT,
|
||||
succeeded INTEGER NOT NULL DEFAULT 0,
|
||||
attempted_at TEXT NOT NULL DEFAULT (datetime('now'))
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS idx_login_attempts_time_ip ON login_attempts(attempted_at,ip_address);
|
||||
Loading…
Add table
Add a link
Reference in a new issue