Add idCard in GetUserByFields().

This commit is contained in:
Gucheng Wang
2022-01-04 19:52:29 +08:00
parent ba32a45693
commit 69e0f4e40d
2 changed files with 9 additions and 3 deletions

View File

@ -64,6 +64,12 @@ func GetUserByFields(organization string, field string) *User {
return user
}
// check ID card
user = GetUserByField(organization, "idCard", field)
if user != nil {
return user
}
return nil
}