mirror of
https://github.com/fergalmoran/podnoms.git
synced 2025-12-25 18:58:12 +00:00
Fixed password length issue
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user