using System.ComponentModel.DataAnnotations;
namespace BlueWest.WebApi.Context.Users
{
// from: https://github.com/dotnet/aspnetcore/tree/main/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels
///
/// Login Request adata
///
public class LoginRequest
{
///
/// Email
///
[Required]
[EmailAddress]
public string Email { get; set; }
///
/// Password
///
[Required]
[DataType(DataType.Password)]
public string Password { get; set; }
[Required]
public string Uuid { get; set; }
///
/// Gets Uuid for this login request
///
///
public string GetUuid()
{
return $"{Uuid}|{Email}";
}
}
}