Add logging when bad HTTP userid and/or password

Add logging when bad HTTP userid and/or password (#15420)
This commit is contained in:
Theo Arends 2022-04-22 17:52:53 +02:00
parent 30f20a4b84
commit 235b880d59
1 changed files with 4 additions and 0 deletions

View File

@ -2901,6 +2901,10 @@ void HandleHttpCommand(void)
WSContentBegin(401, CT_APP_JSON);
WSContentSend_P(PSTR("{\"" D_RSLT_WARNING "\":\"" D_NEED_USER_AND_PASSWORD "\"}"));
WSContentEnd();
// https://github.com/arendst/Tasmota/discussions/15420
AddLog(LOG_LEVEL_DEBUG, PSTR(D_LOG_HTTP "Bad userid and/or password"));
return;
}
}