You are here

function hook_tfa_ready_require in Two-factor Authentication (TFA) 7.2

Whether to halt login because TFA is not setup or ready for the account.

Implement this hook to decide if authentication should be denied under the conditions of the account not having TFA set up. TFA module will have already invoked 'ready' methods on enabled plugins.

Parameters

object $account: User account.

Return value

bool FALSE to disallow login or TRUE to allow it without undergoing TFA.

2 invocations of hook_tfa_ready_require()
tfa_login_submit in ./tfa.module
Login submit handler to determine if TFA process is applicable.
tfa_user_login in ./tfa.module
Implements hook_user_login().

File

./tfa.api.php, line 167
TFA API.

Code

function hook_tfa_ready_require($account) {
  return TRUE;
}