|
@@ -130,7 +130,7 @@ public class SecurityServiceImpl implements ISecurityService {
|
|
|
SystemConst.AuthcEncodeEnum enumByKey = SystemConst.AuthcEncodeEnum.findEnumByKey(e.getEncode());
|
|
|
return e.getCredentials().equals(enumByKey.encode(oldPassword));
|
|
|
}).findFirst().orElse(null);
|
|
|
- if(userSecurity != null){
|
|
|
+ if(userSecurity == null){
|
|
|
throw new AppException("历史密码错误!");
|
|
|
}
|
|
|
for(UserSecurity security : list){
|