transactions
This commit is contained in:
15
back/DataModels/SystemKey.cs
Normal file
15
back/DataModels/SystemKey.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace back.DataModels;
|
||||
|
||||
public class SystemKey
|
||||
{
|
||||
public string Email { get; set; } = "@system";
|
||||
public string Key { get; set; } = Guid.NewGuid().ToString();
|
||||
public required string Password { get; set; }
|
||||
|
||||
public bool IsValid(string email, string password, string key)
|
||||
{
|
||||
return Email.Equals(email, StringComparison.InvariantCultureIgnoreCase) &&
|
||||
Password.Equals(password, StringComparison.InvariantCulture) &&
|
||||
Key.Equals(key, StringComparison.InvariantCulture);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user