project reorganized

This commit is contained in:
2024-04-27 22:36:16 +02:00
Unverified
parent fcca2119a5
commit 4b333878b8
233 changed files with 4916 additions and 11471 deletions

View File

@@ -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();
}
}
}