Bugfix for change password button in user preferences, fixed bad function parameter name passed to forgot_password.

This commit is contained in:
Merp 2013-04-25 20:06:31 -04:00
parent f0d3500ada
commit 71d2903879

View File

@ -166,7 +166,7 @@ Discourse.User = Discourse.Model.extend({
return Discourse.ajax(Discourse.getURL("/session/forgot_password"), {
dataType: 'json',
data: {
username: this.get('username')
login: this.get('username')
},
type: 'POST'
});