mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-31 21:53:39 +01:00
rework authentication
This commit is contained in:
parent
f9d9e2608e
commit
f278c5a762
17 changed files with 137 additions and 401 deletions
|
|
@ -0,0 +1,12 @@
|
|||
namespace MareSynchronosShared.Authentication;
|
||||
|
||||
internal record SecretKeyFailedAuthorization
|
||||
{
|
||||
private int failedAttempts = 1;
|
||||
public int FailedAttempts => failedAttempts;
|
||||
public Task ResetTask { get; set; }
|
||||
public void IncreaseFailedAttempts()
|
||||
{
|
||||
Interlocked.Increment(ref failedAttempts);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue