Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Adding reset password to api

  • Loading branch information...
commit 94d92cc1b1d400f8aaaf3c930794f6b07390b6cb 1 parent 657bf64
Marcos Oliveira authored July 07, 2011

Showing 2 changed files with 11 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  nodester.js
  2. 5  package.json
8  nodester.js
@@ -177,4 +177,12 @@ nodester.prototype.appdomains = function(cb) {
177 177
   this.get('appdomains', cb);
178 178
 };
179 179
 
  180
+nodester.prototype.password_reset_token = function(some_user, cb) {
  181
+  this.post('reset_password', { user: some_user }, cb);
  182
+};
  183
+
  184
+nodester.prototype.password_reset_setpass = function(token, a_password, cb) {
  185
+  this.put('reset_password/'+token, { password: a_password }, cb);
  186
+};
  187
+
180 188
 exports.nodester = nodester;
5  package.json
... ...
@@ -1,13 +1,14 @@
1 1
 {
2 2
   "name": "nodester-api",
3 3
   "description": "A module to allow interaction with the http://nodester.com/ platform.",
4  
-  "version": "0.1.8",
  4
+  "version": "0.1.9",
5 5
   "homepage": "http://nodester.com/",
6 6
   "repository": "git://github.com/nodester/nodester-api.git",
7 7
   "author": "Daniel Bartlett <dan@f-box.org> (http://danb-uk.net/)",
8 8
   "contributors": [
9 9
     "Dav Glass <davglass@gmail.com> @davglass",
10  
-    "Chris Matthieu <chris@matthieu.us>"
  10
+    "Chris Matthieu <chris@matthieu.us>",
  11
+    "Marcos Oliveira <marcosvm@gmail.com>"
11 12
   ],
12 13
   "engines": {
13 14
     "node": "*"

0 notes on commit 94d92cc

Please sign in to comment.
Something went wrong with that request. Please try again.