mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
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.length<8){
|
||||
if(body.password.length < register.password.minLength){
|
||||
throw FieldErrors({
|
||||
password: {
|
||||
code: "PASSWORD_REQUIREMENTS_MIN_LENGTH",
|
||||
|
Loading…
Reference in New Issue
Block a user