17 lines
394 B
C#
17 lines
394 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace MealPlan.Api.DTOs.Auth;
|
|
|
|
/// <summary>Credentials submitted to <c>POST /api/auth/login</c>.</summary>
|
|
public class LoginRequestDto
|
|
{
|
|
[Required]
|
|
[EmailAddress]
|
|
[MaxLength(256)]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(256)]
|
|
public string Password { get; set; } = string.Empty;
|
|
}
|