Skip to content

Instantly share code, notes, and snippets.

@squirelo
Created May 1, 2014 10:25
Show Gist options
  • Save squirelo/86963df6cac4136b4227 to your computer and use it in GitHub Desktop.
Save squirelo/86963df6cac4136b4227 to your computer and use it in GitHub Desktop.
void authenticateHandler(YunClient client) {
String code = client.readString();
code.trim();
/////si j'enleve ca ca marche plus
if(authenticate(code)) {
log("Authenticated, opening door.");
}
else {
log("Failed to authenticate");
}
////////////
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment