14 lines
391 B
C#
14 lines
391 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Birdmap.Models
|
|
{
|
|
public record AuthenticateRequest
|
|
{
|
|
[Required(AllowEmptyStrings = false, ErrorMessage = "Username is required.")]
|
|
public string Username { get; set; }
|
|
|
|
[Required(AllowEmptyStrings = false, ErrorMessage = "Password is required.")]
|
|
public string Password { get; set; }
|
|
}
|
|
}
|