重置,修改加解密
This commit is contained in:
parent
a5e306a0f9
commit
37e8761508
|
|
@ -90,10 +90,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) throws Exception {
|
public AjaxResult updatePwd(String actionCode, String handleCode) throws Exception {
|
||||||
//对新老密码进行解密
|
//对新老密码进行解密
|
||||||
String oldDecrypt = RsaUtil.decryptByPrivateKey(oldPassword, Constants.privateKey);
|
String oldDecrypt = RsaUtil.decryptByPrivateKey(actionCode, Constants.privateKey);
|
||||||
String newDecrypt = RsaUtil.decryptByPrivateKey(newPassword, Constants.privateKey);
|
String newDecrypt = RsaUtil.decryptByPrivateKey(handleCode, Constants.privateKey);
|
||||||
String username = SecurityUtils.getUsername();
|
String username = SecurityUtils.getUsername();
|
||||||
SysUser user = userService.selectUserByUserName(username);
|
SysUser user = userService.selectUserByUserName(username);
|
||||||
String password = user.getPassword();
|
String password = user.getPassword();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue