|
|
|
@ -2,6 +2,7 @@ package com.ruoyi.web.controller.system;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
@ -77,6 +78,7 @@ public class SysProfileController extends BaseController
|
|
|
|
|
* 重置密码
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
|
|
|
|
|
@PreAuthorize("@ss.hasPermi('system:user:updatePwd')")
|
|
|
|
|
@PutMapping("/updatePwd")
|
|
|
|
|
public AjaxResult updatePwd(String oldPassword, String newPassword)
|
|
|
|
|
{
|
|
|
|
|