diff --git a/src/modules/users/domain/userPassword.ts b/src/modules/users/domain/userPassword.ts index 82294794..ac09e299 100644 --- a/src/modules/users/domain/userPassword.ts +++ b/src/modules/users/domain/userPassword.ts @@ -83,7 +83,9 @@ export class UserPassword extends ValueObject { if ( !this.isAppropriateLength(props.value) ) { - return Result.fail('Password doesnt meet criteria [8 chars min].'); + return Result.fail( + `Password doesnt meet criteria [${this.minLength} chars min].` + ); } }