Files
DailyMeals/MealPlan.Api/DTOs/Auth/RegisterRequestDto.cs
2026-06-04 06:24:56 +02:00

21 lines
470 B
C#

using System.ComponentModel.DataAnnotations;
namespace MealPlan.Api.DTOs.Auth;
/// <summary>Payload for <c>POST /api/auth/register</c>.</summary>
public class RegisterRequestDto
{
[Required]
[EmailAddress]
[MaxLength(256)]
public string Email { get; set; } = string.Empty;
[MaxLength(256)]
public string? UserName { get; set; }
[Required]
[MinLength(8)]
[MaxLength(256)]
public string Password { get; set; } = string.Empty;
}