fix min password length check

This commit is contained in:
Madeline committed 2023-08-12 00:20:36 +10:00
1 parent d06fbcebb8
commit c0614b18c3
1 file changed
+2 -3
+2 -3
View File
@@ -225,9 +225,8 @@ router.post(
}
if (body.password) {
const min = register.password.minLength
? register.password.minLength
: 8;
const min = register.password.minLength ?? 8;
if (body.password.length < min) {
throw FieldErrors({
password: {