public static function MoAuthUtilities::send_support_query in Google Authenticator / 2 Factor Authentication - 2FA 7
3 calls to MoAuthUtilities::send_support_query()
- miniorange_2fa_send_query in ./
mo_auth_customer_setup.inc - Send support query.
- miniorange_2fa_send_query in ./
mo_auth_login_settings.inc - Send support query.
- mo_auth_support_submit in ./
mo_auth_support.inc - Send support query.
File
- classes/
Utilities.php, line 108 - This file is part of miniOrange 2FA module.
Class
- MoAuthUtilities
- @file This file is part of miniOrange 2FA module.
Code
public static function send_support_query($email, $phone, $query) {
if (empty($email) || empty($query)) {
drupal_set_message(t('The <b><u>Email</u></b> and <b><u>Query</u></b> fields are mandatory.'), 'error');
return;
}
elseif (!valid_email_address($email)) {
drupal_set_message(t('The email address <b><i>' . $email . '</i></b> is not valid.'), 'error');
return;
}
$support = new Miniorange2FASupport($email, $phone, $query);
$support_response = $support
->sendSupportQuery();
if ($support_response) {
drupal_set_message(t('Your support query has been sent successfully. We will get back to you soon.'));
}
else {
drupal_set_message(t('Error sending support query. Please try again.'), 'error');
}
}