mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 17:46:36 +00:00
add resource check
incorrect pass / hw handling in a loader
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Azaion.LoaderUI;
|
||||
|
||||
public class ApiCredentials(string email, string pw)
|
||||
[MessagePackObject]
|
||||
public class ApiCredentials
|
||||
{
|
||||
public string Email { get; set; } = email;
|
||||
public string Password { get; set; } = pw;
|
||||
[Key(nameof(Email))]
|
||||
public string Email { get; set; } = null!;
|
||||
|
||||
[Key(nameof(Password))]
|
||||
public string Password { get; set; } = null!;
|
||||
|
||||
public bool IsValid() =>
|
||||
!string.IsNullOrWhiteSpace(Email) && !string.IsNullOrWhiteSpace(Password);
|
||||
|
||||
Reference in New Issue
Block a user