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