[WEBUI] Do not display gateway password if using WifiManualSetup (#1793)

This commit is contained in:
Florian authored and GitHub committed 2023-11-08 11:15:14 -06:00
1 parent 029409c0c3
commit 673a895d44
2 files changed
+11 -2

No files matched your search

+4
View File
@@ -814,6 +814,7 @@ void handleMQ() {
server.send(200, "text/html", response);
}
# ifndef ESPWifiManualSetup
/**
* @brief /CG - Configure Gateway Page
* T: handleCG: uri: /gw, args: 2, method: 1
@@ -882,6 +883,7 @@ void handleCG() {
response += String(buffer);
server.send(200, "text/html", response);
}
# endif
/**
* @brief /LO - Configure Logging Page
@@ -1486,7 +1488,9 @@ void WebUISetup() {
server.on("/cn", handleCN); // Configuration
server.on("/wi", handleWI); // Configure Wifi
server.on("/mq", handleMQ); // Configure MQTT
# ifndef ESPWifiManualSetup
server.on("/cg", handleCG); // Configure Gateway"
# endif
server.on("/wu", handleWU); // Configure WebUI
# ifdef ZgatewayLORA
server.on("/la", handleLA); // Configure LORA