P1: No unique constraint on email field — duplicate leads possible #6

Open
opened 2026-05-13 20:39:37 -05:00 by null · 0 comments
Owner

Severity: P1 — High

File: server/index.js ~lines 310, 362

Problem: INSERT INTO leads and INSERT INTO support_requests do not check for duplicates. No unique constraint on email field.

Impact: Duplicate leads created if same email submitted multiple times (spam or user error).

Fix: Add UNIQUE constraint on email column, or add deduplication check before INSERT.

## Severity: P1 — High **File:** server/index.js ~lines 310, 362 **Problem:** INSERT INTO leads and INSERT INTO support_requests do not check for duplicates. No unique constraint on email field. **Impact:** Duplicate leads created if same email submitted multiple times (spam or user error). **Fix:** Add UNIQUE constraint on email column, or add deduplication check before INSERT.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#6
No description provided.