Refactoring, database structure changed
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user