project reorganized
This commit is contained in:
@@ -1,26 +1,13 @@
|
||||
using FluentValidation;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Cryptography.X509Certificates;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using WatchIt.Database;
|
||||
using WatchIt.Shared.Models.Accounts.Authenticate;
|
||||
using WatchIt.Common.Model.Accounts;
|
||||
|
||||
namespace WatchIt.WebAPI.Validators.Accounts
|
||||
namespace WatchIt.WebAPI.Validators.Accounts;
|
||||
|
||||
public class AuthenticateRequestValidator : AbstractValidator<AuthenticateRequest>
|
||||
{
|
||||
public class AuthenticateRequestValidator : AbstractValidator<AuthenticateRequest>
|
||||
public AuthenticateRequestValidator()
|
||||
{
|
||||
#region CONSTRUCTOR
|
||||
|
||||
public AuthenticateRequestValidator(DatabaseContext database)
|
||||
{
|
||||
RuleFor(x => x.UsernameOrEmail).NotEmpty();
|
||||
RuleFor(x => x.Password).NotEmpty();
|
||||
}
|
||||
|
||||
#endregion
|
||||
RuleFor(x => x.UsernameOrEmail).NotEmpty();
|
||||
RuleFor(x => x.Password).NotEmpty();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user