|
|
@ -101,8 +101,7 @@ public class SysProfileController extends BaseController { |
|
|
|
return R.fail("新密码不能与旧密码相同"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (userService.resetUserPwd(userName, BCrypt.hashpw(newPassword))) { |
|
|
|
if (userService.resetUserPwd(userName, BCrypt.hashpw(DesUtil.decrypt(newPassword)))) { |
|
|
|
return R.ok(); |
|
|
|
} |
|
|
|
return R.fail("修改密码异常,请联系管理员"); |
|
|
|