新增账户时增加对是否具有密码的检测
This commit is contained in:
parent
c9e2c934dc
commit
d4c8a90c04
|
@ -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);
|
||||
|
||||
// 批量创建角色关联关系
|
||||
|
|
Loading…
Reference in New Issue