1
0
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:
ngn13 2023-06-10 22:13:44 +03:00 committed by GitHub
parent f006ddc735
commit 9efe160340
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",