Added basic authentication and localization
This commit is contained in:
13
src/Server/Models/Auth.cs
Normal file
13
src/Server/Models/Auth.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace Server.Models;
|
||||
|
||||
public class SimpleAuthOptions
|
||||
{
|
||||
public List<SimpleUser> Users { get; set; } = new();
|
||||
}
|
||||
|
||||
public class SimpleUser
|
||||
{
|
||||
public string Username { get; set; } = "";
|
||||
public string Password { get; set; } = "";
|
||||
public string[] Roles { get; set; } = Array.Empty<string>();
|
||||
}
|
||||
Reference in New Issue
Block a user