From 89f55563f742ffddb9bce92c7c52d1bf7310d1e1 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 7 Mar 2019 18:59:24 +0100 Subject: [PATCH] Add secure test Add secure test --- sonoff/xdrv_01_webserver.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index 8df9529b4..d4b9fdaa3 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -777,7 +777,7 @@ void HandleWifiLogin(void) WSContentSendStyle(); WSContentSend(FPSTR(HTTP_FORM_LOGIN)); - if (WifiIsInManagerMode()) { + if (HTTP_MANAGER_RESET_ONLY == webserver_state) { WSContentSend(F("
")); WSContentSend(FPSTR(HTTP_BTN_RSTRT)); #ifndef FIRMWARE_MINIMAL