Add confirmation so people don't click the wrong button.
This commit is contained in:
parent
9679248691
commit
0478506e87
|
@ -188,7 +188,7 @@ const char index_html[] PROGMEM = R"rawliteral(
|
||||||
|
|
||||||
<br><hr>
|
<br><hr>
|
||||||
<h2>Network Settings</h2>
|
<h2>Network Settings</h2>
|
||||||
<form action="/get2" accept-charset=utf-8>
|
<form onsubmit="return confirm('Are you sure you want to change the network and reboot?');" action="/get2" accept-charset=utf-8>
|
||||||
<p>Network Access:
|
<p>Network Access:
|
||||||
<select name="inputNetwork" id="network">
|
<select name="inputNetwork" id="network">
|
||||||
<option value="0">Access Point</option>
|
<option value="0">Access Point</option>
|
||||||
|
@ -604,7 +604,7 @@ void setup() {
|
||||||
Serial.println(yourInputPassword);
|
Serial.println(yourInputPassword);
|
||||||
}
|
}
|
||||||
// Shouldn't need to do this if using this form.
|
// Shouldn't need to do this if using this form.
|
||||||
//request->redirect("/");
|
request->redirect("/");
|
||||||
|
|
||||||
resetFunc(); // reset the Arduino via software function
|
resetFunc(); // reset the Arduino via software function
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user