CodeLiturgy.Dashboard/BlueWest.Api/Users/Models/LoginViewModel.cs

33 lines
793 B
C#

using System.ComponentModel.DataAnnotations;
namespace BlueWest.WebApi.Context.Users
{
// from: https://github.com/dotnet/aspnetcore/tree/main/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels
/// <summary>
/// Login View Model
/// </summary>
public class LoginViewModel
{
/// <summary>
/// Email
/// </summary>
[Required]
[EmailAddress]
public string Email { get; set; }
/// <summary>
/// Password
/// </summary>
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
/// <summary>
/// RememberMe
/// </summary>
[Display(Name = "Remember me?")]
public bool RememberMe { get; set; }
}
}