From 71d29038797dba391feb02b9c4cf7460be65329b Mon Sep 17 00:00:00 2001 From: Merp Date: Thu, 25 Apr 2013 20:06:31 -0400 Subject: [PATCH] Bugfix for change password button in user preferences, fixed bad function parameter name passed to forgot_password. --- app/assets/javascripts/discourse/models/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/models/user.js b/app/assets/javascripts/discourse/models/user.js index 77b1dd3ae..1280da916 100644 --- a/app/assets/javascripts/discourse/models/user.js +++ b/app/assets/javascripts/discourse/models/user.js @@ -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' });