mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Do not record failed attempts on empty passwords
This commit is contained in:
@@ -102,7 +102,13 @@ namespace ArchiSteamFarm.IPC.Integration {
|
||||
return HttpStatusCode.Unauthorized;
|
||||
}
|
||||
|
||||
bool authorized = passwords.First() == ASF.GlobalConfig.IPCPassword;
|
||||
string inputPassword = passwords.FirstOrDefault(password => !string.IsNullOrEmpty(password));
|
||||
|
||||
if (string.IsNullOrEmpty(inputPassword)) {
|
||||
return HttpStatusCode.Unauthorized;
|
||||
}
|
||||
|
||||
bool authorized = inputPassword == ASF.GlobalConfig.IPCPassword;
|
||||
|
||||
await AuthorizationSemaphore.WaitAsync().ConfigureAwait(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user