mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
16 lines
403 B
C#
16 lines
403 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Marechai.Data.Models;
|
|
|
|
public sealed record AuthRequest
|
|
{
|
|
[Required]
|
|
[EmailAddress]
|
|
[JsonPropertyName("email")]
|
|
public string Email { get; set; } = null!;
|
|
[Required]
|
|
[DataType(DataType.Password)]
|
|
[JsonPropertyName("password")]
|
|
public string Password { get; set; } = null!;
|
|
} |