mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 04:32:35 +01:00
fix min password length check
This commit is contained in:
parent
d06fbcebb8
commit
c0614b18c3
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user