fix: Add restriction to username when signing up (#1203)

This commit is contained in:
cofecatt
2022-10-10 19:58:02 +08:00
committed by GitHub
parent e4a54fe375
commit 4c7f6fda37
6 changed files with 44 additions and 1 deletions

View File

@ -409,6 +409,7 @@ func SyncLdapUsers(owner string, users []LdapRespUser, ldapId string) (*[]LdapRe
}
}
}
if !found && !AddUser(&User{
Owner: owner,
Name: buildLdapUserName(user.Uid, user.UidNumber),