login flow
This commit is contained in:
parent
886d2a88b0
commit
194f3cbffa
22 changed files with 642 additions and 141 deletions
13
Sledgemapper.Shared/Entities/AuthenticateModel.cs
Normal file
13
Sledgemapper.Shared/Entities/AuthenticateModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
11
Sledgemapper.Shared/Entities/AuthenticateResponse.cs
Normal file
11
Sledgemapper.Shared/Entities/AuthenticateResponse.cs
Normal 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; }
|
||||
}
|
||||
}
|
21
Sledgemapper.Shared/Entities/RegisterModel.cs
Normal file
21
Sledgemapper.Shared/Entities/RegisterModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
|
@ -10,6 +10,7 @@
|
|||
{
|
||||
return $"{X}_{Y}";
|
||||
}
|
||||
public double Timestamp {get;set;}
|
||||
}
|
||||
|
||||
public class Tile :BaseMapEntity
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue