Compare commits

...

1 Commits

Author SHA1 Message Date
  liuzx d598931176 fix-2775 3 years ago
1 changed files with 1 additions and 1 deletions
Split View
  1. +1
    -1
      models/user.go

+ 1
- 1
models/user.go View File

@@ -1469,7 +1469,7 @@ func IsUserByPhoneNumberExist(phoneNumber string) (bool, error) {
}

func isUserByPhoneNumberExist(e Engine, phoneNumber string) (bool, error) {
return e.Where("phone_number = ?", phoneNumber).Exist(&User{})
return e.Where("phone_number = ? And is_active = ?", phoneNumber, true).Exist(&User{})

}



Loading…
Cancel
Save