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.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
using System.ComponentModel.DataAnnotations;
namespace API.DTOs;
public class RegisterDto
{
[Required]
public string Username { get; init; } = default!;
/// <summary>
/// An email to register with. Optional. Provides Forgot Password functionality
/// </summary>
public string Email { get; init; } = default!;
[Required]
[StringLength(32, MinimumLength = 6)]
public string Password { get; set; } = default!;
}