fixed authentication checkmark bug
This commit is contained in:
parent
1090c210f7
commit
9e1ae940d3
|
@ -271,7 +271,7 @@ void ota_begin()
|
|||
configbuffer+=config_txt_part1+"Hostname"+config_txt_part2+"text"+config_txt_part3+"hostname"+config_txt_part4+"hostname"+config_txt_part5+String(HOSTNAME)+config_txt_part6;
|
||||
configbuffer+=config_txt_part1+"BMS Server - IP Address"+config_txt_part2+"text"+config_txt_part3+"bms_ip"+config_txt_part4+"bms_ip"+config_txt_part5+MQTT_SERVER.toString()+config_txt_part6;
|
||||
configbuffer+=config_txt_part1+"BMS Server - Port"+config_txt_part2+"text"+config_txt_part3+"bms_port"+config_txt_part4+"bms_port"+config_txt_part5+String(MQTT_PORT)+config_txt_part6;
|
||||
configbuffer+=config_auth_part1+(MQTT_USE_AUTH?"yes":"no")+config_auth_part2;
|
||||
configbuffer+=config_auth_part1+(MQTT_USE_AUTH?"checked=\"checked\"":"")+config_auth_part2;
|
||||
configbuffer+=config_txt_part1+"BMS Server - Username"+config_txt_part2+"text"+config_txt_part3+"bms_username"+config_txt_part4+"bms_username"+config_txt_part5+String(MQTT_USERNAME)+config_txt_part6;
|
||||
configbuffer+=config_txt_part1+"BMS Server - Password"+config_txt_part2+"password"+config_txt_part3+"bms_password"+config_txt_part4+"bms_password"+config_txt_part5+String(MQTT_PASSWORD)+config_txt_part6;
|
||||
configbuffer+=config_txt_part1+"BMS Server - Endpoint"+config_txt_part2+"text"+config_txt_part3+"bms_endpoint"+config_txt_part4+"bms_endpoint"+config_txt_part5+String(MQTT_BASE_TOPIC)+config_txt_part6;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
R"=====(<label class="container">Authentication
|
||||
<input type="checkbox" name="bms_useauth" id="bms_useauth" checked="checked" value=")====="
|
||||
<input type="checkbox" name="bms_useauth" id="bms_useauth" )====="
|
|
@ -1,3 +1,3 @@
|
|||
R"=====(">
|
||||
R"=====( value="yes">
|
||||
<span class="checkmark"></span>
|
||||
</label>)====="
|
Loading…
Reference in New Issue