making min password length configurable
Co-authored-by: Puyodead1 <puyodead@proton.me>
This commit is contained in:
parent
f006ddc735
commit
9efe160340
@ -225,7 +225,7 @@ router.post(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (body.password) {
|
if (body.password) {
|
||||||
if(body.password.length<8){
|
if(body.password.length < register.password.minLength){
|
||||||
throw FieldErrors({
|
throw FieldErrors({
|
||||||
password: {
|
password: {
|
||||||
code: "PASSWORD_REQUIREMENTS_MIN_LENGTH",
|
code: "PASSWORD_REQUIREMENTS_MIN_LENGTH",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user