Loading tfa.inc +9 −0 Original line number Diff line number Diff line Loading @@ -235,6 +235,15 @@ class Tfa { return $this->fallback; } /** * Whether it's a fallback process. * * @return bool */ public function isFallback() { return isset($this->context['active_fallback']); } /** * Return TFA context. * Loading tfa.module +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ function tfa_login_submit($form, &$form_state) { $tfa = tfa_get_process($account); // Check if TFA has been set up by the account. if (!$tfa->ready()) { if (!$tfa->ready() && !$tfa->isFallback()) { // Allow other modules to act on login when account is not set up for TFA. $require_tfa = array_filter(module_invoke_all('tfa_ready_require', $account)); if (!empty($require_tfa)) { Loading Loading
tfa.inc +9 −0 Original line number Diff line number Diff line Loading @@ -235,6 +235,15 @@ class Tfa { return $this->fallback; } /** * Whether it's a fallback process. * * @return bool */ public function isFallback() { return isset($this->context['active_fallback']); } /** * Return TFA context. * Loading
tfa.module +1 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,7 @@ function tfa_login_submit($form, &$form_state) { $tfa = tfa_get_process($account); // Check if TFA has been set up by the account. if (!$tfa->ready()) { if (!$tfa->ready() && !$tfa->isFallback()) { // Allow other modules to act on login when account is not set up for TFA. $require_tfa = array_filter(module_invoke_all('tfa_ready_require', $account)); if (!empty($require_tfa)) { Loading