diff --git a/client/src/pages/PrivacyPolicy.tsx b/client/src/pages/PrivacyPolicy.tsx index 950c31605..35303405c 100644 --- a/client/src/pages/PrivacyPolicy.tsx +++ b/client/src/pages/PrivacyPolicy.tsx @@ -1,7 +1,12 @@ import { Link } from "wouter"; import { ShieldCheck } from "lucide-react"; +import { useEffect } from "react"; export default function PrivacyPolicy() { + useEffect(() => { + document.title = "Privacy Policy | Clinical Insight Engine"; + }, []); + return (
diff --git a/client/src/pages/Terms.tsx b/client/src/pages/Terms.tsx index 12a852d88..b03730140 100644 --- a/client/src/pages/Terms.tsx +++ b/client/src/pages/Terms.tsx @@ -1,7 +1,12 @@ import { Link } from "wouter"; import { ShieldCheck } from "lucide-react"; +import { useEffect } from "react"; export default function Terms() { + useEffect(() => { + document.title = "Terms of Service | Clinical Insight Engine"; + }, []); + return (
diff --git a/server/auth.ts b/server/auth.ts index 0d05273d3..42d74ee91 100644 --- a/server/auth.ts +++ b/server/auth.ts @@ -11,7 +11,6 @@ import { sendVerificationCode } from "./email"; declare module "express-session" { interface SessionData { user?: { - id: string; email: string; name: string; role?: string | null; @@ -309,10 +308,10 @@ export function createAuthRouter(): Router { const devEmail = process.env.DEV_CLINICIAN_EMAIL || ""; const devPassword = process.env.DEV_CLINICIAN_PASSWORD || ""; - let userFullName: string | null = null; + let userName: string | null = null; if (email === devEmail && password === devPassword) { - userFullName = "Dr. Smith"; + userName = "Dr. Smith"; } else { // Check in-memory store (legacy) const registeredUser = registeredUsers.get(email);