diff --git a/nodester.js b/nodester.js index de9e2dd..efc7497 100644 --- a/nodester.js +++ b/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; diff --git a/package.json b/package.json index b7a10ce..2e09bd8 100644 --- a/package.json +++ b/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 (http://danb-uk.net/)", "contributors": [ "Dav Glass @davglass", - "Chris Matthieu " + "Chris Matthieu ", + "Marcos Oliveira " ], "engines": { "node": "*"