Browse files

Add user deletion API

  • Loading branch information...
1 parent 15589d8 commit b85da25c010a1f64eccea8e495e20a4eba3c86e0 @agnoster agnoster committed Feb 1, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 nodester.js
View
4 nodester.js
@@ -74,6 +74,10 @@ nodester.prototype.user_create = function (user, pass, email, rsakey, coupon, cb
}.bind(this));
};
+nodester.prototype.user_delete = function (user, cb) {
+ this.del('user', { user: user }, cb);
+};
+
nodester.prototype.user_setpass = function (newpass, cb) {
this.put('user', { password: newpass }, cb);
};

0 comments on commit b85da25

Please sign in to comment.