You are here

public function TfaTestSend::begin in Two-factor Authentication (TFA) 7.2

TFA process begin.

Overrides TfaSendPluginInterface::begin

File

tests/includes/tfa_test.send.inc, line 105
Tests for the TfaSendPluginInterface.

Class

TfaTestSend
Class TfaTestSend.

Code

public function begin() {

  // Clear resend flood.
  flood_clear_event('tfa_test_resend');

  // Variable used by TfaTestCase::testSendError().
  if (!variable_get('tfa_test_send_begin', TRUE)) {
    drupal_set_message(t('Error during send'), 'error');
  }

  // A real plugin might send the code to the user.
}