You are here

function mo_auth_disable in Google Authenticator / 2 Factor Authentication - 2FA 7

Implements hook_disable().

File

./mo_auth.install, line 228

Code

function mo_auth_disable() {
  if (!isset($_SESSION['mo_other'])) {
    $_SESSION['mo_other'] = "False";
  }
  $drupal_is_cli = MoAuthUtilities::drupal_is_cli();
  if (!$drupal_is_cli) {
    miniorange_2fa_feedback();
  }
}