Skip to content

Commit

Permalink
Adding reset password to api
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosvm committed Jul 26, 2011
1 parent 657bf64 commit 94d92cc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 8 additions & 0 deletions nodester.js
Expand Up @@ -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;
5 changes: 3 additions & 2 deletions 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": "*"
Expand Down

0 comments on commit 94d92cc

Please sign in to comment.