Füge Unterstützung für IP-Sperre und verbessere die Anmeldefunktionalität hinzu; aktualisiere .gitignore, Dockerfile und Datenbankschema

This commit is contained in:
Troy Grunt
2026-02-01 23:06:49 +01:00
parent b2a74c2a17
commit 43ab962ca5
5 changed files with 30 additions and 32 deletions

View File

@@ -22,6 +22,7 @@ CREATE TABLE access_tokens (
uuid CHAR(36) NOT NULL UNIQUE,
expires_at DATETIME NULL,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
notes TEXT NULL,
FOREIGN KEY (identity_id)
REFERENCES identities(id)
ON DELETE CASCADE
@@ -53,3 +54,13 @@ CREATE TABLE files (
REFERENCES access_tokens(id)
ON DELETE SET NULL
) ENGINE=InnoDB;
CREATE TABLE admin_login_attempts (
id INT AUTO_INCREMENT PRIMARY KEY,
ip_address VARCHAR(45) NOT NULL,
attempts INT NOT NULL DEFAULT 1,
locked_until DATETIME NULL,
last_attempt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY (ip_address)
);