
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>
16 lines
451 B
C#
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!;
|
|
}
|