Add isHashed to syncer's tableColumn.

This commit is contained in:
Yang Luo
2021-12-19 23:32:42 +08:00
parent 5ee5299a68
commit bf642b35d4
3 changed files with 17 additions and 2 deletions

View File

@ -80,7 +80,9 @@ func (syncer *Syncer) calculateHash(user *OriginalUser) string {
values := []string{}
m := syncer.getMapFromOriginalUser(user)
for _, tableColumn := range syncer.TableColumns {
values = append(values, m[tableColumn.Name])
if tableColumn.IsHashed {
values = append(values, m[tableColumn.CasdoorName])
}
}
s := strings.Join(values, "|")