mirror of
https://github.com/spacebarchat/server.git
synced 2026-06-08 15:11:54 +00:00
fix min password length check
This commit is contained in:
@@ -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