新增账户时增加对是否具有密码的检测

This commit is contained in:
Zhaoyang 2020-02-19 14:04:57 +08:00
parent c9e2c934dc
commit d4c8a90c04
1 changed files with 3 additions and 1 deletions

View File

@ -108,7 +108,9 @@ public class IamUserServiceImpl extends BaseIamServiceImpl<IamUserMapper, IamUse
.setAuthType(Cons.DICTCODE_AUTH_TYPE.PWD.name())
.setStatus(userAccountDTO.getStatus());
// 设置密码
IamSecurityUtils.encryptPwd(iamAccount);
if (V.notEmpty(iamAccount.getAuthSecret())){
IamSecurityUtils.encryptPwd(iamAccount);
}
boolean accountSuccess = iamAccountService.createEntity(iamAccount);
// 批量创建角色关联关系