Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions client/src/pages/PrivacyPolicy.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="min-h-screen bg-gradient-to-br from-slate-50 via-blue-50/60 to-white px-5 py-16 sm:px-6 lg:px-8">
<div className="mx-auto max-w-3xl">
Expand Down
5 changes: 5 additions & 0 deletions client/src/pages/Terms.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className="min-h-screen bg-gradient-to-br from-slate-50 via-blue-50/60 to-white px-5 py-16 sm:px-6 lg:px-8">
<div className="mx-auto max-w-3xl">
Expand Down
5 changes: 2 additions & 3 deletions server/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
declare module "express-session" {
interface SessionData {
user?: {
id: string;
email: string;
name: string;
role?: string | null;
Expand Down Expand Up @@ -309,10 +308,10 @@
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);
Expand Down Expand Up @@ -340,7 +339,7 @@
if (registeredUser && verifyPassword(password, registeredUser.passwordHash)) {
userName = registeredUser.fullName;
}
} catch (_err) {

Check failure on line 342 in server/auth.ts

View workflow job for this annotation

GitHub Actions / Code Quality and Tests

'try' expected.

Check failure on line 342 in server/auth.ts

View workflow job for this annotation

GitHub Actions / Type check (tsc)

'try' expected.
// DB not available β€” fall back to in-memory only
console.warn("DB unavailable for login, using in-memory only.");
const registeredUser = registeredUsers.get(email);
Expand Down
Loading