You are here

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

6 calls to MoAuthUtilities::isCustomerRegistered()
mo_auth_create_auth_type in ./mo_auth_setup_twofactor.inc
mo_auth_form_user_login_alter in ./mo_auth.module
mo_auth_form_user_login_block_alter in ./mo_auth.module
mo_auth_login_settings in ./mo_auth_login_settings.inc
Showing Support form info.
mo_auth_setup_twofactor in ./mo_auth_setup_twofactor.inc
Showing Setup Two-Factor page.

... See full list

File

classes/Utilities.php, line 200
This file is part of miniOrange 2FA module.

Class

MoAuthUtilities
@file This file is part of miniOrange 2FA module.

Code

public static function isCustomerRegistered() {
  if (variable_get('mo_auth_customer_admin_email', NULL) == NULL || variable_get('mo_auth_customer_id', NULL) == NULL || variable_get('mo_auth_customer_token_key', NULL) == NULL || variable_get('mo_auth_customer_api_key', NULL) == NULL) {
    return FALSE;
  }
  return TRUE;
}