You are here

public function MoAuthSupport::submitForm in Google Authenticator / 2 Factor Authentication - 2FA 8

Same name and namespace in other branches
  1. 8.2 src/Form/MoAuthSupport.php \Drupal\miniorange_2fa\Form\MoAuthSupport::submitForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides FormInterface::submitForm

File

src/Form/MoAuthSupport.php, line 105
Contains support form for miniOrange 2FA Login Module.

Class

MoAuthSupport
Showing Support form info.

Namespace

Drupal\miniorange_2fa\Form

Code

public function submitForm(array &$form, \Drupal\Core\Form\FormStateInterface $form_state) {
  $email = $form['mo_auth_email_address']['#value'];
  $phone = $form['mo_auth_phone_number']['#value'];
  $query = $form['mo_auth_support_query']['#value'];
  MoAuthUtilities::send_support_query($email, $phone, $query);
}