using System.ComponentModel.DataAnnotations; namespace API.DTOs.Account; public class ResetPasswordDto { /// /// The Username of the User /// [Required] public string UserName { get; init; } = default!; /// /// The new password /// [Required] [StringLength(32, MinimumLength = 6)] public string Password { get; init; } = default!; /// /// The old, existing password. If an admin is performing the change, this is not required. Otherwise, it is. /// public string OldPassword { get; init; } = default!; }