mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-28 12:13:23 +00:00
fix min password length check
This commit is contained in:
1 file changed
+2
-3
@@ -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: {
|
||||
|
||||
Reference in new issue
Block a user