mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 08:56:33 +00:00
don't send hardware hash, calc on the api
This commit is contained in:
@@ -30,6 +30,7 @@ public static class AzaionDbSchemaHolder
|
||||
.HasDataType(DataType.Text)
|
||||
.HasConversion(v => v.ToString(), v => (RoleEnum)Enum.Parse(typeof(RoleEnum), v));
|
||||
|
||||
|
||||
builder.Build();
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,4 @@ public class HardwareInfo
|
||||
public string GPU { get; set; } = null!;
|
||||
public string MacAddress { get; set; } = null!;
|
||||
public string Memory { get; set; } = null!;
|
||||
|
||||
public string? Hash { get; set; } = null!;
|
||||
}
|
||||
@@ -6,6 +6,7 @@ public class User
|
||||
public string Email { get; set; } = null!;
|
||||
public string PasswordHash { get; set; } = null!;
|
||||
public string? Hardware { get; set; }
|
||||
public string? HardwareHash { get; set; }
|
||||
public RoleEnum Role { get; set; }
|
||||
|
||||
public static string GetCacheKey(string email) => $"{nameof(User)}.{email}";
|
||||
}
|
||||
Reference in New Issue
Block a user