public function UsersAPIHandler::search in Google Authenticator / 2 Factor Authentication - 2FA 8
Same name and namespace in other branches
- 8.2 src/UsersAPIHandler.php \Drupal\miniorange_2fa\UsersAPIHandler::search()
File
- src/
UsersAPIHandler.php, line 71
Class
Namespace
Drupal\miniorange_2faCode
public function search(MiniorangeUser $user) {
$fields = array(
'customerKey' => $user
->getCustomerId(),
'username' => $user
->getUsername(),
);
$json = json_encode($fields);
$url = MoAuthConstants::$USERS_SEARCH_API;
return MoAuthUtilities::callService($this->customerId, $this->apiKey, $url, $json);
}