Print reason for Auth Failure.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-11-17 22:14:42 +01:00
parent 224d3a5168
commit 14a2df5ae2
+4 -2
View File
@@ -67,9 +67,11 @@ int check_client_auth(struct mg_connection *conn)
user_id, timestr, auth_data[user_id].remote_addr);
}
}
else if(config.debug & DEBUG_API)
logg("Authentification: FAIL (cookie invalid/expired)");
}
if(user_id < 0 && config.debug & DEBUG_API)
logg("Authentification: FAIL");
else if(config.debug & DEBUG_API)
logg("Authentification: FAIL (no cookie provided)");
return user_id;
}