diff --git a/src/api/auth.c b/src/api/auth.c index 2846ee1b..cd69a49e 100644 --- a/src/api/auth.c +++ b/src/api/auth.c @@ -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; }