mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 11:20:18 +08:00
Add isHashed to syncer's tableColumn.
This commit is contained in:
@ -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, "|")
|
||||
|
Reference in New Issue
Block a user