Fixed password length issue

This commit is contained in:
Fergal Moran
2018-05-03 06:41:30 +01:00
parent 4fed1b8820
commit 9acca8c5bf
4 changed files with 2 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ namespace PodNoms.Api.Models.ViewModels {
public CredentialsViewModelValidator() {
RuleFor(vm => vm.UserName).NotEmpty().WithMessage("Username cannot be empty");
RuleFor(vm => vm.Password).NotEmpty().WithMessage("Password cannot be empty");
RuleFor(vm => vm.Password).Length(6, 12).WithMessage("Password must be between 6 and 12 characters");
RuleFor(vm => vm.Password).Length(6, 256).WithMessage("Password must be between 6 and 12 characters");
}
}
}