Added login/register function. Implemented authentication. Started authorization
This commit is contained in:
13
Moonlight.ApiServer/Database/Entities/User.cs
Normal file
13
Moonlight.ApiServer/Database/Entities/User.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Moonlight.ApiServer.Database.Entities;
|
||||
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Username { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Password { get; set; }
|
||||
|
||||
public DateTime TokenValidTimestamp { get; set; } = DateTime.UtcNow;
|
||||
public string PermissionsJson { get; set; } = "[]";
|
||||
}
|
||||
Reference in New Issue
Block a user