Nuki Hub login
");
response.print("Duo Push sent
");
- response.print("Please confirm login in the Duo app
");
+ response.print("Please confirm login in the Duo app
");
response.print("");
response.print("");
@@ -2847,6 +2942,36 @@ bool WebCfgServer::processArgs(PsychicRequest *request, PsychicResponse* resp, S
newMFA = true;
}
}
+ else if(key == "DUOBYPASS")
+ {
+ if(_preferences->getBool(preference_cred_bypass_boot_btn_enabled, false) != (value == "1"))
+ {
+ _preferences->putBool(preference_cred_bypass_boot_btn_enabled, (value == "1"));
+ Log->print(("Setting changed: "));
+ Log->println(key);
+ configChanged = true;
+ }
+ }
+ else if(key == "DUOBYPASSHIGH")
+ {
+ if(_preferences->getInt(preference_cred_bypass_gpio_high, -1) != value.toInt())
+ {
+ _preferences->putInt(preference_cred_bypass_gpio_high, value.toInt());
+ Log->print(("Setting changed: "));
+ Log->println(key);
+ configChanged = true;
+ }
+ }
+ else if(key == "DUOBYPASSLOW")
+ {
+ if(_preferences->getInt(preference_cred_bypass_gpio_low, -1) != value.toInt())
+ {
+ _preferences->putInt(preference_cred_bypass_gpio_low, value.toInt());
+ Log->print(("Setting changed: "));
+ Log->println(key);
+ configChanged = true;
+ }
+ }
else if(key == "DUOAPPROVAL")
{
if(_preferences->getBool(preference_cred_duo_approval, false) != (value == "1"))
@@ -4761,6 +4886,7 @@ esp_err_t WebCfgServer::buildImportExportHtml(PsychicRequest *request, PsychicRe
}
#endif
response.print("