Skip to content

Instantly share code, notes, and snippets.

@msraynsford
Last active February 28, 2018 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msraynsford/8cdd9404b056d121dbffca118bc59800 to your computer and use it in GitHub Desktop.
Save msraynsford/8cdd9404b056d121dbffca118bc59800 to your computer and use it in GitHub Desktop.
void handleAdmin() {
// Create a string containing all the arguments, send them out to the serial port
Serial.printf("handleAdmin\n");
// Construct a list of all the arguments for debug
String message = "#Args:" + String(webServer.args()) + "\n";
for (int i = 0; i < webServer.args(); i++)
message.concat(webServer.argName(i) + ": "+ webServer.arg(i) + "\n");
Serial.print(message);
// Check to see that the submitted password is the same as the current password
if(webServer.hasArg("oldpassword")) {
// Check to see that the submitted password is the same as the current password
if(strcmp(webServer.arg("oldpassword").c_str(), config.password) == 0) {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment