|
1
|
package com.ruoyi.web.controller.system;
|
1
|
package com.ruoyi.web.controller.system;
|
|
2
|
|
2
|
|
|
|
|
3
|
+import java.util.Map;
|
|
3
|
import org.springframework.beans.factory.annotation.Autowired;
|
4
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
4
|
import org.springframework.web.bind.annotation.GetMapping;
|
5
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
5
|
import org.springframework.web.bind.annotation.PostMapping;
|
6
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -87,8 +88,10 @@ public class SysProfileController extends BaseController |
|
@@ -87,8 +88,10 @@ public class SysProfileController extends BaseController |
|
87
|
*/
|
88
|
*/
|
|
88
|
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
|
89
|
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
|
|
89
|
@PutMapping("/updatePwd")
|
90
|
@PutMapping("/updatePwd")
|
|
90
|
- public AjaxResult updatePwd(String oldPassword, String newPassword)
|
91
|
+ public AjaxResult updatePwd(@RequestBody Map<String, String> params)
|
|
91
|
{
|
92
|
{
|
|
|
|
93
|
+ String oldPassword = params.get("oldPassword");
|
|
|
|
94
|
+ String newPassword = params.get("newPassword");
|
|
92
|
LoginUser loginUser = getLoginUser();
|
95
|
LoginUser loginUser = getLoginUser();
|
|
93
|
String userName = loginUser.getUsername();
|
96
|
String userName = loginUser.getUsername();
|
|
94
|
String password = loginUser.getPassword();
|
97
|
String password = loginUser.getPassword();
|