refactor: 不允许修改密码

approve-sys
tony 3 years ago
parent 1751fe8f04
commit e99d260f9d

@ -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)
{

Loading…
Cancel
Save