You are here

function tfa_basic_tfa_ready_require in TFA Basic plugins 7

Implements hook_tfa_ready_require().

File

./tfa_basic.module, line 279

Code

function tfa_basic_tfa_ready_require($account) {
  if (tfa_basic_tfa_required($account)) {
    drupal_set_message(t('Login disallowed. You are required to set up two-factor authentication. Please contact a site administrator.'), 'error');
    return TRUE;
  }
  return FALSE;
}