diff options
Diffstat (limited to 'util.go')
-rw-r--r-- | util.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -138,3 +138,11 @@ func genUuid() string { } return uuid.String() } + +func valueMatch(attr, val1, val2 string) bool { + if strings.EqualFold(attr, ATTR_USERPASSWORD) { + return val1 == val2 + } else { + return strings.EqualFold(val1, val2) + } +} |