From 55371cb6751b5830b91d70a380fce9b3c22ac29b Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Fri, 21 Jun 2024 21:51:06 +0300 Subject: [PATCH] feat: add request to log in --- ApiDto/Requests/LoginRequest.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 ApiDto/Requests/LoginRequest.cs diff --git a/ApiDto/Requests/LoginRequest.cs b/ApiDto/Requests/LoginRequest.cs new file mode 100644 index 0000000..65fd4ec --- /dev/null +++ b/ApiDto/Requests/LoginRequest.cs @@ -0,0 +1,21 @@ +using System.ComponentModel.DataAnnotations; + +namespace Mirea.Api.Dto.Requests; + +/// +/// Request to receive protected content +/// +public class LoginRequest +{ + /// + /// Login or Email to identify the client. + /// + [Required] + public required string Username { get; set; } + + /// + /// The client's password. + /// + [Required] + public required string Password { get; set; } +} \ No newline at end of file