Files
moadiran/Shared/DTOs/Authentication.cs

14 lines
472 B
C#
Raw Permalink Normal View History

2024-04-17 17:34:34 +03:30
using System.ComponentModel.DataAnnotations;
namespace Shared.DTOs
2024-04-17 15:49:34 +03:30
{
public class Authentication
{
2024-04-17 17:34:34 +03:30
[MinLength(3,ErrorMessage =("نام کاربری باید حداقل 3 کاراکتر باشد"))]
2024-04-17 15:49:34 +03:30
public string Username { get; set; }
2024-04-17 17:34:34 +03:30
[MinLength(3, ErrorMessage = ("کلمه عبور باید حداقل 3 کاراکتر باشد"))]
2024-04-17 15:49:34 +03:30
public string Password { get; set; }
2024-07-08 16:10:06 +03:30
public bool Remember { get; set; }=true;
2024-04-17 15:49:34 +03:30
}
}