Skip to content

Instantly share code, notes, and snippets.

this.loginUser = function(user, callback) {
//plans for changing this to promises once i do error reporting
// var q = Q.defer();
// if() {
// q.resolve(num+1);
// } else {
// q.reject("error message");
// }
// return q.promise;