function miniorange_2fa_inline_registration::validate_otp_for_user in Google Authenticator / 2 Factor Authentication - 2FA 8
Same name and namespace in other branches
- 8.2 src/Form/miniorange_2fa_inline_registration.php \Drupal\miniorange_2fa\form\miniorange_2fa_inline_registration::validate_otp_for_user()
2 calls to miniorange_2fa_inline_registration::validate_otp_for_user()
File
- src/
Form/ miniorange_2fa_inline_registration.php, line 762
Class
Namespace
Drupal\miniorange_2fa\formCode
function validate_otp_for_user($txId, $token) {
$customer = new MiniorangeCustomerProfile();
$miniorange_user = new MiniorangeUser($customer
->getCustomerID(), NULL, NULL, NULL, NULL);
$auth_api_handler = new AuthenticationAPIHandler($customer
->getCustomerID(), $customer
->getAPIKey());
$response = $auth_api_handler
->validate($miniorange_user, $txId, $token);
return $response;
}