Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding reset password to api #5

Merged
merged 1 commit into from

2 participants

@marcosvm

@chrismatthieu @DanBUK

Reset password stuff.

@contra contra merged commit a2005e7 into master
@contra

I'll work on pulling the server code soon. Great job!

@marcosvm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 26, 2011
  1. @marcosvm

    Adding reset password to api

    marcosvm authored
This page is out of date. Refresh to see the latest.
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": "*"
Something went wrong with that request. Please try again.