Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

632 B
Raw Blame
using System.ComponentModel.DataAnnotations;

namespace API.DTOs.Account;

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