Last active
February 28, 2018 20:04
-
-
Save msraynsford/8cdd9404b056d121dbffca118bc59800 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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