You are here

public static function MoAuthUtilities::isCustomerRegistered in Google Authenticator / 2 Factor Authentication - 2FA 8.2

Same name and namespace in other branches
  1. 8 src/MoAuthUtilities.php \Drupal\miniorange_2fa\MoAuthUtilities::isCustomerRegistered()
2 calls to MoAuthUtilities::isCustomerRegistered()
miniorange_2fa_form_alter in ./miniorange_2fa.module
MoAuthSupport::buildForm in src/Form/MoAuthSupport.php
Form constructor.

File

src/MoAuthUtilities.php, line 272
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities

Namespace

Drupal\miniorange_2fa

Code

public static function isCustomerRegistered() {
  $variables_and_values = array(
    'mo_auth_customer_admin_email',
    'mo_auth_customer_id',
    'mo_auth_customer_api_key',
    'mo_auth_customer_token_key',
  );
  $mo_db_values = self::miniOrange_set_get_configurations($variables_and_values, 'GET');
  if ($mo_db_values['mo_auth_customer_admin_email'] == NULL || $mo_db_values['mo_auth_customer_id'] == NULL || $mo_db_values['mo_auth_customer_token_key'] == NULL || $mo_db_values['mo_auth_customer_api_key'] == NULL) {
    return FALSE;
  }
  return TRUE;
}