mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
21 lines
478 B
C#
21 lines
478 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace SharpbinV3.DTOs
|
|
{
|
|
public class RegisterRequest
|
|
{
|
|
[Required]
|
|
[StringLength(50, MinimumLength = 3)]
|
|
public required string Username { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(128, MinimumLength = 6)]
|
|
public required string Password { get; set; }
|
|
|
|
[EmailAddress]
|
|
public string? Email { get; set; }
|
|
|
|
public string? DisplayName { get; set; }
|
|
}
|
|
}
|