Skip to content

Commit

Permalink
fix: hiding the password in the UI
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdbreemen committed Apr 13, 2024
1 parent 8d9da27 commit d0b5fbc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
6 changes: 6 additions & 0 deletions data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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")
{
Expand Down
5 changes: 3 additions & 2 deletions restAPI.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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");
Expand Down
18 changes: 9 additions & 9 deletions version.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d0b5fbc

Please sign in to comment.