public function AuthenticationAPIHandler::getGoogleAuthSecret in Google Authenticator / 2 Factor Authentication - 2FA 7
File
- classes/
AuthenticationAPIHandler.php, line 56
Class
Code
public function getGoogleAuthSecret(MiniorangeUser $user) {
$fields = array(
'customerKey' => $user
->getCustomerId(),
'username' => $user
->getUsername(),
);
$json = json_encode($fields);
$url = MoAuthConstants::getBaseUrl() . MoAuthConstants::$AUTH_GET_GOOGLE_AUTH_API;
return MoAuthUtilities::callService($this->customerId, $this->apiKey, $url, $json);
}