refactor: code review

This commit is contained in:
meilin.huang
2024-01-09 17:31:21 +08:00
parent 3c89a285f5
commit b7aa281611
15 changed files with 130 additions and 60 deletions

View File

@@ -88,7 +88,7 @@ func (a *LdapLogin) getUser(userName string, cols ...string) (*sysentity.Account
func (a *LdapLogin) createUser(userName, displayName string) {
account := &sysentity.Account{Username: userName}
account.SetBaseInfo(model.IdGenTypeNone, nil)
account.FillBaseInfo(model.IdGenTypeNone, nil)
account.Name = displayName
biz.ErrIsNil(a.AccountApp.Create(context.TODO(), account))
// 将 LADP 用户本地密码设置为空,不允许本地登录