Fix verification_attempts table definition inside send_verification_code.php

This commit is contained in:
ilham_gmail
2026-06-11 21:40:17 +07:00
parent 4f52db834e
commit cb3e18fc64
@@ -28,10 +28,10 @@ try {
email VARCHAR(255) PRIMARY KEY,
attempts INT NOT NULL DEFAULT 0,
last_attempt_at DATETIME NOT NULL,
locked_until DATETIME NULL
locked_until DATETIME NULL,
code_hash VARCHAR(128) NULL,
expires_at DATETIME NULL
)");
$conn->query("ALTER TABLE verification_attempts ADD COLUMN IF NOT EXISTS code_hash VARCHAR(128) NULL");
$conn->query("ALTER TABLE verification_attempts ADD COLUMN IF NOT EXISTS expires_at DATETIME NULL");
} catch (Exception $e) {}
$nowStr = date('Y-m-d H:i:s');