Skip to content

Instantly share code, notes, and snippets.

@zackster
Created February 20, 2012 06:15
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 zackster/1868096 to your computer and use it in GitHub Desktop.
Save zackster/1868096 to your computer and use it in GitHub Desktop.
$("button#login").click(function() {
DNode.connect(function (remote) {
remote.login($("#registerEmail").val(), $("#registerPassword").val(), function(successful_login) {
if(successful_login) {
console.log('login successful!');
}
else {
console.log('login failed.');
}
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment