mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
14 lines
332 B
C#
14 lines
332 B
C#
using FluentValidation;
|
|
|
|
namespace Features.Auth.Queries.Login;
|
|
|
|
public class LoginValidator : AbstractValidator<LoginQuery>
|
|
{
|
|
public LoginValidator()
|
|
{
|
|
RuleFor(x => x.Username).NotEmpty().WithMessage("Username is required");
|
|
|
|
RuleFor(x => x.Password).NotEmpty().WithMessage("Password is required");
|
|
}
|
|
}
|