mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 17:32:30 +00:00
making min password length configurable
Co-authored-by: Puyodead1 <puyodead@proton.me>
This commit is contained in:
1 parent
f006ddc735
commit
9efe160340
1 file changed
+1
-1
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user