Files
Sharpbin/SharpbinV3/DTOs/CreateUserDto.cs
T
2025-11-24 14:00:13 -05:00

21 lines
476 B
C#

using System.ComponentModel.DataAnnotations;
namespace SharpbinV3.DTOs
{
public class CreateUserDto
{
[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; }
}
}