mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
Don't log failed token authentication attempts into auth log
This commit is contained in:
parent
ed0f9071e4
commit
6bb0fd8d77
@ -487,8 +487,12 @@ void InternetServiceConnector::ReceivePackets(IRunOtherCallback* run_other)
|
||||
CWData data;
|
||||
if(!errmsg.empty())
|
||||
{
|
||||
logFailedAuth(clientname, endpoint_name);
|
||||
Server->Log("Authentication failed in InternetServiceConnector::ReceivePackets: "+errmsg, LL_INFO);
|
||||
if (!token_auth)
|
||||
{
|
||||
logFailedAuth(clientname, endpoint_name);
|
||||
}
|
||||
Server->Log("Authentication failed in InternetServiceConnector::ReceivePackets: "+errmsg
|
||||
+ (token_auth ? " (token authentication)" :""), LL_INFO);
|
||||
data.addChar(ID_ISC_AUTH_FAILED);
|
||||
data.addString(errmsg);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user