update title, gate register endpoint
Build and Publish Docker Image / build (push) Successful in 1m35s

This commit is contained in:
2026-09-07 01:15:03 -04:00
parent 729eca0ea2
commit 0e2735e317
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -12,6 +12,10 @@ export async function register(
try { try {
const body = schemas.users.registration.parse(req.body); 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 email = body.email;
const passwordHash = await bcrypt.hash(body.password, 12); const passwordHash = await bcrypt.hash(body.password, 12);
const user = await prisma.user.create({ const user = await prisma.user.create({
+1 -1
View File
@@ -13,7 +13,7 @@ type SsrRoute = {
) => Promise<{ data: SsrData; head: SsrHead } | null>; ) => Promise<{ data: SsrData; head: SsrHead } | null>;
}; };
const SITE_NAME = "Alex / dev + QA"; const SITE_NAME = "Alex Frantz - Blog";
const SITE_DESCRIPTION = const SITE_DESCRIPTION =
"random thoughts, sometimes LinkedIn slop, sometimes just about my interests."; "random thoughts, sometimes LinkedIn slop, sometimes just about my interests.";