Browse Source

修改密码时传入userId

zhuth 6 years ago
parent
commit
ef8e376629
1 changed files with 3 additions and 2 deletions
  1. 3 2
      frontend/pc-web/app/view/main/MainController.js

+ 3 - 2
frontend/pc-web/app/view/main/MainController.js

@@ -110,11 +110,12 @@ Ext.define('school.view.main.MainController', {
                         handler: function(btn) {
                             var window = btn.up('window'),
                             form = window.down('form'),
-                            values = form.getValues();
+                            values = form.getValues(),
+                            userId = school.util.BaseUtil.getCurrentUser().id;
     
                             window.setLoading(true);
                             school.util.BaseUtil.request({
-                                url: '/api/account/account/password/reset?password=' + values.password1,
+                                url: '/api/account/account/password/reset?password=' + values.password1 + '&userId=' + userId,
                                 method: 'POST',
                             }).then(function(res) {
                                 window.setLoading(false);