| | |
| | | if(strategy.getRequireCharCount() > strategy.getCombinations().split(",").length){ |
| | | throw new VciBaseException("必填种类不能大于所选择的密码组合方式的个数!"); |
| | | } |
| | | if(strategy.getRequireCharCount() <= 0){ |
| | | throw new VciBaseException("必填种类不能小于等于0!"); |
| | | } |
| | | if(strategy.getMaxLength() < strategy.getMinLength()){ |
| | | throw new VciBaseException("密码最大长度不能小于最小长度!"); |
| | | } |
| | |
| | | //组合方式转换为存储值 |
| | | spsDto.setRequireCharType(combinations2Plchartypes(spsDto.getCombinations())); |
| | | PasswordStrategyInfo passwordStrategyInfo = changePasswordStrategyDTO2Info(spsDto); |
| | | |
| | | return platformClientUtil.getFrameworkService().editPasswordStrategy(passwordStrategyInfo,userEntityInfo); |
| | | } |
| | | |