forked from ddrilling/AsbCloudServer
16 lines
434 B
C#
16 lines
434 B
C#
using AsbCloudApp.Data;
|
|
using FluentValidation;
|
|
|
|
namespace AsbCloudInfrastructure.Validators.ValidatorsDto
|
|
{
|
|
public class AuthDtoValidator : AbstractValidator<AuthDto>
|
|
{
|
|
public AuthDtoValidator()
|
|
{
|
|
RuleFor(x => x.Login).NotNull();
|
|
RuleFor(x => x.Login).Length(0, 50);
|
|
RuleFor(x => x.Password).NotNull();
|
|
RuleFor(x => x.Password).Length(0, 50);
|
|
}
|
|
}
|
|
} |