summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/api/routes/auth/register.ts2
1 files changed, 1 insertions, 1 deletions
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",