feat: support e164 phone number in GetUserByPhone() (#4099)

This commit is contained in:
DacongDA
2025-08-19 02:19:15 +08:00
committed by GitHub
parent 83df077a02
commit eda742a848
3 changed files with 20 additions and 1 deletions

View File

@@ -80,7 +80,8 @@ func GetUserByFields(organization string, field string) (*User, error) {
}
// check phone
user, err = GetUserByField(organization, "phone", field)
phone := util.GetSeperatedPhone(field)
user, err = GetUserByField(organization, "phone", phone)
if user != nil || err != nil {
return user, err
}