mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 09:56:34 +00:00
121052a3ef
add security encryption and hashing: WIP add endpoints: register user, get and save resources add db main operations, User entity
12 lines
412 B
C#
12 lines
412 B
C#
namespace Azaion.Common.Entities;
|
|
|
|
public class User
|
|
{
|
|
public string Id { get; set; } = null!;
|
|
public string Username { get; set; } = null!;
|
|
public string PasswordHash { get; set; } = null!;
|
|
public string HardwareId { get; set; } = null!;
|
|
public RoleEnum Role { get; set; }
|
|
|
|
public string UniqueKey => $"Azaion#{Username}#{PasswordHash}#{HardwareId}";
|
|
} |