You are here

static function MiniorangeUser::getApiKey in Google Authenticator / 2 Factor Authentication - 2FA 8.2

4 calls to MiniorangeUser::getApiKey()
MiniorangeUser::create in src/MiniorangeUser.php
MiniorangeUser::get in src/MiniorangeUser.php
MiniorangeUser::search in src/MiniorangeUser.php
MiniorangeUser::update in src/MiniorangeUser.php

File

src/MiniorangeUser.php, line 59

Class

MiniorangeUser

Namespace

Drupal\miniorange_2fa

Code

static function getApiKey() {
  $variables_and_values = array(
    'mo_auth_customer_api_key',
  );
  $mo_db_values = MoAuthUtilities::miniOrange_set_get_configurations($variables_and_values, 'GET');
  if ($mo_db_values['mo_auth_customer_api_key'] == '') {
    return NULL;
  }
  return $mo_db_values['mo_auth_customer_api_key'];
}