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
@@ -23,6 +23,11 @@ export default async function updateUserById(
response: "Username invalid.",
status: 400,
};
if (data.newPassword && data.newPassword?.length < 8)
return {
response: "Password must be at least 8 characters.",
status: 400,
};
// Check email (if enabled)
const checkEmail =