2022-09-26 04:40:18 +03:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
2022-09-27 20:12:13 +03:00
|
|
|
namespace BlueWest.Data.Auth.Context.Users
|
2022-09-26 04:40:18 +03:00
|
|
|
{
|
|
|
|
// from: https://github.com/dotnet/aspnetcore/tree/main/src/Identity/samples/IdentitySample.Mvc/Models/AccountViewModels
|
|
|
|
/// <summary>
|
|
|
|
/// Login Request adata
|
|
|
|
/// </summary>
|
|
|
|
public class LoginRequest
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Email
|
|
|
|
/// </summary>
|
|
|
|
[Required]
|
|
|
|
[EmailAddress]
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Password
|
|
|
|
/// </summary>
|
|
|
|
[Required]
|
|
|
|
[DataType(DataType.Password)]
|
|
|
|
public string Password { get; set; }
|
|
|
|
|
|
|
|
[Required]
|
2022-10-27 20:13:02 +03:00
|
|
|
public string Uuid { get ; set; }
|
2022-09-26 04:40:18 +03:00
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Gets Uuid for this login request
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
public string GetUuid()
|
|
|
|
{
|
|
|
|
return $"{Uuid}|{Email}";
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|