mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-08 04:00:51 +08:00
feat: support e164 phone number in GetUserByPhone() (#4099)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user