bug fixed

This commit is contained in:
daniel31x13
2023-11-19 22:28:02 -05:00
parent 0c6911aaf0
commit 9f181fb15e
3 changed files with 12 additions and 0 deletions
+5
View File
@@ -30,6 +30,11 @@ export default async function postUser(
? !body.password || !body.name || !body.email
: !body.username || !body.password || !body.name;
if (body.password.length < 8)
return res
.status(400)
.json({ response: "Password must be at least 8 characters." });
if (checkHasEmptyFields)
return res
.status(400)