birbmap/Birdmap.API/DTOs/AuthenticateRequest.cs

14 lines
391 B
C#
Raw Normal View History

2020-10-21 17:04:54 +02:00
using System.ComponentModel.DataAnnotations;
namespace Birdmap.Models
{
2020-11-12 18:13:23 +01:00
public record AuthenticateRequest
2020-10-21 17:04:54 +02:00
{
[Required(AllowEmptyStrings = false, ErrorMessage = "Username is required.")]
public string Username { get; set; }
[Required(AllowEmptyStrings = false, ErrorMessage = "Password is required.")]
public string Password { get; set; }
}
}