login flow

This commit is contained in:
Michele Scandura 2020-11-10 12:14:21 +00:00
parent 886d2a88b0
commit 194f3cbffa
22 changed files with 642 additions and 141 deletions

View file

@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;
namespace Sledgemapper.Shared.Entities
{
public class AuthenticateModel
{
[Required]
public string Username { get; set; }
[Required]
public string Password { get; set; }
}
}

View file

@ -0,0 +1,11 @@
namespace Sledgemapper.Shared.Entities
{
public class AuthenticateResponse
{
public string Id { get; set; }
public string Username { get; set; }
public string Firstname { get; set; }
public string LastName { get; set; }
public string Token { get; set; }
}
}

View file

@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace Sledgemapper.Shared.Entities
{
public class RegisterModel
{
[Required]
public string FirstName { get; set; }
[Required]
public string LastName { get; set; }
[Required]
public string Username { get; set; }
[Required]
public string Password { get; set; }
[Required]
public string Initials { get; set; }
}
}

View file

@ -10,6 +10,7 @@
{
return $"{X}_{Y}";
}
public double Timestamp {get;set;}
}
public class Tile :BaseMapEntity