diff options
Diffstat (limited to 'src/api/routes/auth/register.ts')
-rw-r--r-- | src/api/routes/auth/register.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/api/routes/auth/register.ts b/src/api/routes/auth/register.ts index 14dc319a..c92ebfe0 100644 --- a/src/api/routes/auth/register.ts +++ b/src/api/routes/auth/register.ts @@ -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: { |