Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding reset password to api

  • Loading branch information...
commit 94d92cc1b1d400f8aaaf3c930794f6b07390b6cb 1 parent 657bf64
@marcosvm marcosvm authored
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": "*"
Please sign in to comment.
Something went wrong with that request. Please try again.