Added functionality to the Login Controller. Added TODO's for implementing Tokens #27 #31

This commit is contained in:
amazing-username
2019-04-28 02:05:23 +00:00
parent 8a38417a51
commit 0f918d6562
4 changed files with 124 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
using System;
using Newtonsoft.Json;
namespace Icarus.Models
{
public class LoginResult
{
[JsonProperty("id")]
public int UserId { get; set; }
[JsonProperty("username")]
public string Username { get; set; }
[JsonProperty("token")]
public string Token { get; set; }
[JsonProperty("expiration")]
public int Expiration { get; set; }
}
}