From 0e2735e317689a3c2c6ff95f72f42241640feac1 Mon Sep 17 00:00:00 2001 From: Alex Frantz Date: Mon, 7 Sep 2026 01:15:03 -0400 Subject: [PATCH] update title, gate register endpoint --- apps/backend/src/controllers/users.ts | 4 ++++ apps/frontend/src/ssr/routes.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/backend/src/controllers/users.ts b/apps/backend/src/controllers/users.ts index bbe5ed4..8c0bf3b 100644 --- a/apps/backend/src/controllers/users.ts +++ b/apps/backend/src/controllers/users.ts @@ -12,6 +12,10 @@ export async function register( try { const body = schemas.users.registration.parse(req.body); + if (body.email !== "alex@alexav.gg") { + res.status(400).json({ message: "You are not authorized to register" }); + } + const email = body.email; const passwordHash = await bcrypt.hash(body.password, 12); const user = await prisma.user.create({ diff --git a/apps/frontend/src/ssr/routes.ts b/apps/frontend/src/ssr/routes.ts index 88a8b7a..2be16a9 100644 --- a/apps/frontend/src/ssr/routes.ts +++ b/apps/frontend/src/ssr/routes.ts @@ -13,7 +13,7 @@ type SsrRoute = { ) => Promise<{ data: SsrData; head: SsrHead } | null>; }; -const SITE_NAME = "Alex / dev + QA"; +const SITE_NAME = "Alex Frantz - Blog"; const SITE_DESCRIPTION = "random thoughts, sometimes LinkedIn slop, sometimes just about my interests.";