You are here

public function TfaTrustedBrowser::getForm in TFA Basic plugins 7

@copydoc TfaValidationPluginInterface::getForm()

File

includes/tfa_trusted_browser.inc, line 54
classes for TFA basic plugin

Class

TfaTrustedBrowser
Class TfaTrustedBrowser

Code

public function getForm(array $form, array &$form_state) {
  $form['trust_browser'] = array(
    '#type' => 'checkbox',
    '#title' => t('Remember this browser for @interval?', array(
      '@interval' => format_interval($this->expiration),
    )),
    '#description' => t('Not recommended if you are on a public or shared computer.'),
  );
  return $form;
}