Kavita/API/DTOs/RegisterDto.cs
Joe Milazzo 894b49bb76
v0.8.3.2 - A Small Hotfix (#3194)
Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
Co-authored-by: Weblate (bot) <hosted@weblate.org>
Co-authored-by: Havokdan <havokdan@yahoo.com.br>
Co-authored-by: daydreamrabbit <devrabbit90@gmail.com>
Co-authored-by: 無情天 <kofzhanganguo@126.com>
2024-09-20 14:18:42 -07:00

16 lines
451 B
C#

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(256, MinimumLength = 6)]
public string Password { get; set; } = default!;
}