mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
16 lines
No EOL
389 B
C#
16 lines
No EOL
389 B
C#
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MareSynchronosServices.Authentication;
|
|
|
|
internal class FailedAuthorization
|
|
{
|
|
private int failedAttempts = 1;
|
|
public int FailedAttempts => failedAttempts;
|
|
public Task ResetTask { get; set; }
|
|
public void IncreaseFailedAttempts()
|
|
{
|
|
Interlocked.Increment(ref failedAttempts);
|
|
}
|
|
} |