Files
WatchIt/WatchIt.DTO/Models/Controllers/Authentication/AuthenticationRequestValidator.cs

12 lines
329 B
C#

using FluentValidation;
namespace WatchIt.DTO.Models.Controllers.Authentication;
public class AuthenticationRequestValidator : AbstractValidator<AuthenticationRequest>
{
public AuthenticationRequestValidator()
{
RuleFor(x => x.UsernameOrEmail).NotEmpty();
RuleFor(x => x.Password).NotEmpty();
}
}