Permalink
Browse files

Merge pull request #5 from nodester/reset_password

Adding reset password to api
  • Loading branch information...
2 parents 657bf64 + 94d92cc commit a2005e7b18bf86edab439625c65226c29489b60d @contra contra committed Aug 13, 2011
Showing with 11 additions and 2 deletions.
  1. +8 −0 nodester.js
  2. +3 −2 package.json
View
8 nodester.js
@@ -177,4 +177,12 @@ nodester.prototype.appdomains = function(cb) {
this.get('appdomains', cb);
};
+nodester.prototype.password_reset_token = function(some_user, cb) {
+ this.post('reset_password', { user: some_user }, cb);
+};
+
+nodester.prototype.password_reset_setpass = function(token, a_password, cb) {
+ this.put('reset_password/'+token, { password: a_password }, cb);
+};
+
exports.nodester = nodester;
View
5 package.json
@@ -1,13 +1,14 @@
{
"name": "nodester-api",
"description": "A module to allow interaction with the http://nodester.com/ platform.",
- "version": "0.1.8",
+ "version": "0.1.9",
"homepage": "http://nodester.com/",
"repository": "git://github.com/nodester/nodester-api.git",
"author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",
"contributors": [
"Dav Glass <davglass@gmail.com> @davglass",
- "Chris Matthieu <chris@matthieu.us>"
+ "Chris Matthieu <chris@matthieu.us>",
+ "Marcos Oliveira <marcosvm@gmail.com>"
],
"engines": {
"node": "*"

0 comments on commit a2005e7

Please sign in to comment.