Skip to content

Instantly share code, notes, and snippets.

@ericktai
Created May 22, 2012 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericktai/2771146 to your computer and use it in GitHub Desktop.
Save ericktai/2771146 to your computer and use it in GitHub Desktop.
Forgot Password fix for JS SDK 0.2.1
StackMob.User = StackMob.User.extend({
forgotPassword : function(options) {
options = options || {};
options['data'] = options['data'] || {};
//fixed the following line. It used to be options['data'][StackMob.loginField]
options['data']['username'] = this.get(StackMob.loginField);
(this.sync || Backbone.sync).call(this, "forgotPassword", this, options);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment