From 080b0c65b817a3eade5277d5f40801a4e8ac5a20 Mon Sep 17 00:00:00 2001 From: ff Date: Tue, 26 May 2026 21:50:30 -0400 Subject: [PATCH] fix: correct license key part count validation (5 not 6) Co-Authored-By: Claude Sonnet 4.6 --- apps/Backend/src/routes/license.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/Backend/src/routes/license.ts b/apps/Backend/src/routes/license.ts index 000b354f..79e7afce 100644 --- a/apps/Backend/src/routes/license.ts +++ b/apps/Backend/src/routes/license.ts @@ -11,7 +11,7 @@ const SECRET = process.env.LICENSE_SECRET || ""; function validateKey(key: string): { valid: boolean; expiry?: string; error?: string } { // Format: DENTAL-{24-char-signature}-{YYYY-MM-DD} const parts = key.trim().split("-"); - if (parts.length !== 6 || parts[0] !== "DENTAL") { + if (parts.length !== 5 || parts[0] !== "DENTAL") { return { valid: false, error: "Invalid license key format" }; }