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