From cb3e18fc648bb33dc4c3fe7611380cfe9d675a07 Mon Sep 17 00:00:00 2001 From: ilham_gmail Date: Thu, 11 Jun 2026 21:40:17 +0700 Subject: [PATCH] Fix verification_attempts table definition inside send_verification_code.php --- poverty-mapping/src/api/auth/send_verification_code.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/poverty-mapping/src/api/auth/send_verification_code.php b/poverty-mapping/src/api/auth/send_verification_code.php index f58b404..a165b66 100644 --- a/poverty-mapping/src/api/auth/send_verification_code.php +++ b/poverty-mapping/src/api/auth/send_verification_code.php @@ -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');