You are here

function MoAuthCustomerSetup::mo_auth_back in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Same name and namespace in other branches
  1. 8 src/Form/MoAuthCustomerSetup.php \Drupal\miniorange_2fa\Form\MoAuthCustomerSetup::mo_auth_back()

Handle back button submit for customer setup.

File

src/Form/MoAuthCustomerSetup.php, line 545
Contains form for customer setup.

Class

MoAuthCustomerSetup
Customer setup form().

Namespace

Drupal\miniorange_2fa\Form

Code

function mo_auth_back($form, &$form_state) {
  MoAuthUtilities::miniOrange_set_get_configurations(array(
    'mo_auth_status' => 'CUSTOMER_SETUP',
  ), 'SET');
  $variables = array(
    'mo_auth_customer_admin_email',
    'mo_auth_customer_admin_phone',
    'mo_auth_tx_id',
  );
  MoAuthUtilities::miniOrange_set_get_configurations($variables, 'CLEAR');
  \Drupal::messenger()
    ->addStatus(t('Register/Login with your miniOrange Account'));
  return;
}