mirror of
https://github.com/rvdbreemen/OTGW-firmware
synced 2024-11-16 04:33:49 +01:00
fix: hiding the password in the UI
This commit is contained in:
parent
8d9da27f2f
commit
d0b5fbcaaf
@ -513,6 +513,12 @@
|
||||
sInput.setAttribute("type", "text");
|
||||
sInput.setAttribute("maxlength", data[i].maxlen);
|
||||
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
|
||||
}
|
||||
else if (data[i].type == "p")
|
||||
{
|
||||
sInput.setAttribute("type", "password");
|
||||
sInput.setAttribute("maxlength", data[i].maxlen);
|
||||
sInput.setAttribute("size", (data[i].maxlen > 20 ? 20 : data[i].maxlen));
|
||||
}
|
||||
else if (data[i].type == "f")
|
||||
{
|
||||
|
@ -421,7 +421,8 @@ void sendDeviceSettings()
|
||||
RESTDebugTln(F("sending device settings ...\r"));
|
||||
|
||||
sendStartJsonObj("settings");
|
||||
|
||||
|
||||
//sendJsonSettingObj("string", settingString, "p", sizeof(settingString)-1);
|
||||
//sendJsonSettingObj("string", settingString, "s", sizeof(settingString)-1);
|
||||
//sendJsonSettingObj("float", settingFloat, "f", 0, 10, 5);
|
||||
//sendJsonSettingObj("intager", settingInteger , "i", 2, 60);
|
||||
@ -431,7 +432,7 @@ void sendDeviceSettings()
|
||||
sendJsonSettingObj("mqttbroker", CSTR(settingMQTTbroker), "s", 32);
|
||||
sendJsonSettingObj("mqttbrokerport", settingMQTTbrokerPort, "i", 0, 65535);
|
||||
sendJsonSettingObj("mqttuser", CSTR(settingMQTTuser), "s", 32);
|
||||
sendJsonSettingObj("mqttpasswd", CSTR(settingMQTTpasswd), "s", 100);
|
||||
sendJsonSettingObj("mqttpasswd", CSTR(settingMQTTpasswd), "p", 100);
|
||||
sendJsonSettingObj("mqtttoptopic", CSTR(settingMQTTtopTopic), "s", 15);
|
||||
sendJsonSettingObj("mqtthaprefix", CSTR(settingMQTThaprefix), "s", 20);
|
||||
sendJsonSettingObj("mqttharebootdetection", settingMQTTharebootdetection, "b");
|
||||
|
18
version.h
18
version.h
@ -2,15 +2,15 @@
|
||||
#define _VERSION_MAJOR 0
|
||||
#define _VERSION_MINOR 10
|
||||
#define _VERSION_PATCH 3
|
||||
#define _VERSION_BUILD 2110
|
||||
#define _VERSION_GITHASH "054866b"
|
||||
#define _VERSION_BUILD 2111
|
||||
#define _VERSION_GITHASH "8d9da27"
|
||||
#define _VERSION_PRERELEASE beta
|
||||
#define _VERSION_DATE "08-04-2024"
|
||||
#define _VERSION_TIME "21:38:09"
|
||||
#define _VERSION_DATE "13-04-2024"
|
||||
#define _VERSION_TIME "13:05:44"
|
||||
#define _SEMVER_CORE "0.10.3"
|
||||
#define _SEMVER_BUILD "0.10.3+2110"
|
||||
#define _SEMVER_GITHASH "0.10.3+054866b"
|
||||
#define _SEMVER_FULL "0.10.3-beta+054866b"
|
||||
#define _SEMVER_NOBUILD "0.10.3-beta (08-04-2024)"
|
||||
#define _VERSION "0.10.3-beta+054866b (08-04-2024)"
|
||||
#define _SEMVER_BUILD "0.10.3+2111"
|
||||
#define _SEMVER_GITHASH "0.10.3+8d9da27"
|
||||
#define _SEMVER_FULL "0.10.3-beta+8d9da27"
|
||||
#define _SEMVER_NOBUILD "0.10.3-beta (13-04-2024)"
|
||||
#define _VERSION "0.10.3-beta+8d9da27 (13-04-2024)"
|
||||
//The version information is created automatically, more information here: https://github.com/rvdbreemen/autoinc-semver
|
||||
|
Loading…
Reference in New Issue
Block a user