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 {
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({