Fixes from code review

This commit is contained in:
Ephraim Atta-Duncan
2023-06-09 03:55:30 +00:00
parent 13a840ff78
commit e3bc41934c
5 changed files with 86 additions and 98 deletions

View File

@ -8,7 +8,7 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {
const { token, password } = req.body;
if (!token) {
res.status(422).json({ message: "Invalid token" });
res.status(400).json({ message: "Invalid token" });
return;
}