From 235b880d595c5fcdf8c8c3cc20591b9f14d12eb6 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Fri, 22 Apr 2022 17:52:53 +0200 Subject: [PATCH] Add logging when bad HTTP userid and/or password Add logging when bad HTTP userid and/or password (#15420) --- tasmota/xdrv_01_webserver.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/xdrv_01_webserver.ino b/tasmota/xdrv_01_webserver.ino index 444eaa43d..07443ee31 100644 --- a/tasmota/xdrv_01_webserver.ino +++ b/tasmota/xdrv_01_webserver.ino @@ -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; } }