mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
🧹
This commit is contained in:
@ -34,7 +34,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
|
|
||||||
const hashedPassword = await hashPassword(password);
|
const hashedPassword = await hashPassword(password);
|
||||||
|
|
||||||
const user = await prisma.user.upsert({
|
await prisma.user.upsert({
|
||||||
where: { email: cleanEmail },
|
where: { email: cleanEmail },
|
||||||
update: {
|
update: {
|
||||||
password: hashedPassword,
|
password: hashedPassword,
|
||||||
@ -49,7 +49,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
res.status(201).json({ message: "Created user" });
|
res.status(201).end();
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defaultHandler({
|
export default defaultHandler({
|
||||||
|
|||||||
Reference in New Issue
Block a user