修复密码问题

This commit is contained in:
liaozetao
2023-12-07 17:35:38 +08:00
parent 5029a17cee
commit ec6c482327

View File

@@ -362,7 +362,7 @@ public class AccountManageService {
String oldPwd = account.getPassword();
password = encryptPassword(password);
if (!StringUtils.hasText(password) || password.equals(oldPwd)){
if (!StringUtils.hasText(password) || !password.equals(oldPwd)){
throw new ServiceException(OAuthStatus.OLD_PASSWORD_ERROR);
}