Kavita/API/DTOs/RegisterDto.cs
Joe Milazzo 4453482d93
Polish before Release 2 (#3723)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
2025-04-11 08:07:17 -07:00

17 lines
468 B
C#

using System.ComponentModel.DataAnnotations;
namespace API.DTOs;
#nullable enable
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; set; } = default!;
[Required]
[StringLength(256, MinimumLength = 6)]
public string Password { get; set; } = default!;
}