bug fixed

This commit is contained in:
daniel31x13
2023-11-19 22:32:23 -05:00
parent 9f181fb15e
commit 9ad277c784
+1 -1
View File
@@ -30,7 +30,7 @@ export default async function postUser(
? !body.password || !body.name || !body.email
: !body.username || !body.password || !body.name;
if (body.password.length < 8)
if (!body.password || body.password.length < 8)
return res
.status(400)
.json({ response: "Password must be at least 8 characters." });