Created
May 22, 2012 19:38
-
-
Save ericktai/2771146 to your computer and use it in GitHub Desktop.
Forgot Password fix for JS SDK 0.2.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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