mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-12 23:51:39 +02:00
improved GUI password handling
fix serial console uptime fix #384 round total values
This commit is contained in:
parent
6a6d522d3b
commit
74f4a114cd
8 changed files with 19 additions and 14 deletions
|
@ -327,7 +327,7 @@ void web::showSave(AsyncWebServerRequest *request) {
|
|||
request->arg("device").toCharArray(mSysCfg->deviceName, DEVNAME_LEN);
|
||||
if(request->arg("adminpwd") != "{PWD}") {
|
||||
request->arg("adminpwd").toCharArray(mConfig->password, PWD_LEN);
|
||||
mProtected = true;
|
||||
mProtected = (strlen(mConfig->password) > 0);
|
||||
}
|
||||
|
||||
// inverter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue