CodeLiturgy.Dashboard/CodeLiturgy.Views/Application/Session/LoginRequest.cs

40 lines
929 B
C#
Raw Normal View History

2022-09-26 04:40:18 +03:00
using System.ComponentModel.DataAnnotations;
2022-11-18 03:15:53 +03:00
namespace CodeLiturgy.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}";
}
}
}