initial commit

This commit is contained in:
2026-07-21 14:28:43 +07:00
commit 01107db6fd
995 changed files with 75124 additions and 0 deletions
@@ -0,0 +1,16 @@
using FluentValidation;
namespace Indotalent.Features.Setting.SystemUser.Cqrs;
public class ChangePasswordValidator : AbstractValidator<ChangePasswordRequest>
{
public ChangePasswordValidator()
{
RuleFor(x => x.UserId).NotEmpty();
RuleFor(x => x.NewPassword)
.NotEmpty().WithMessage("New password is required")
.MinimumLength(6).WithMessage("Password must be at least 6 characters");
RuleFor(x => x.ConfirmPassword)
.Equal(x => x.NewPassword).WithMessage("Passwords do not match");
}
}