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 {
|
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({
|
||||||
|
|||||||
@@ -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.";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user