diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index 7b62f621..f8bc6da2 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -225,7 +225,7 @@ router.post( } if (body.password) { - if(body.password.length<8){ + if(body.password.length < register.password.minLength){ throw FieldErrors({ password: { code: "PASSWORD_REQUIREMENTS_MIN_LENGTH",