You are here

function tfa_login_form_redirect in Two-factor Authentication (TFA) 7.2

Login submit handler for TFA form redirection.

Should be last invoked form submit handler for forms user_login and user_login_block so that when the TFA process is applied the user will be sent to the TFA form.

1 string reference to 'tfa_login_form_redirect'
tfa_form_alter in ./tfa.module
Implements hook_form_alter().

File

./tfa.module, line 258
Two-factor authentication for Drupal.

Code

function tfa_login_form_redirect($form, &$form_state) {
  if (isset($form_state['tfa_redirect'])) {
    $form_state['redirect'] = $form_state['tfa_redirect'];
  }
}