Update UserInfoService.java

This commit is contained in:
Crystal.Sea
2020-09-03 22:25:36 +08:00
parent 99e778f9ae
commit fd75f7e7c6

View File

@@ -194,7 +194,7 @@ public class UserInfoService extends JpaBaseService<UserInfo> {
if(newPassword.equals(confirmPassword)){
if(oldPassword==null ||
passwordEncoder.matches(oldPassword, changeUserInfo.getPassword())){
passwordEncoder.matches(oldPassword, userInfo.getPassword())){
if(changePassword(changeUserInfo) ){
userInfo.setPassword(changeUserInfo.getPassword());
userInfo.setDecipherable(changeUserInfo.getDecipherable());