update title, gate register endpoint
Build and Publish Docker Image / build (push) Successful in 1m35s
Build and Publish Docker Image / build (push) Successful in 1m35s
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user