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');