Skip to content

Instantly share code, notes, and snippets.

@l33z3r
Created July 9, 2013 11:41
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 l33z3r/5956713 to your computer and use it in GitHub Desktop.
Save l33z3r/5956713 to your computer and use it in GitHub Desktop.
Login/Signup Code for jquery couch
$.couch.login({
name: "bob",
password: "supersecurepassword",
success: function(data) {
console.log(data);
},
error: function(status) {
console.log(status);
}
});
var userDoc = {
_id: "org.couchdb.user:bob",
name: "bob"
};
$.couch.signup(userDoc, "supersecurepassword", {
success: function(data) {
console.log(data);
},
error: function(status) {
console.log(status);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment