You are here

private function TFATestCase::interfaceStrings in Two-factor Authentication (TFA) 7

Helper function for storing UI strings.

2 calls to TFATestCase::interfaceStrings()
TFATestCase::testAuthentication in ./tfa.test
TFATestCase::testFloodControl in ./tfa.test

File

./tfa.test, line 27

Class

TFATestCase
Tests the functionality of the TFA module.

Code

private function interfaceStrings($id) {
  switch ($id) {
    case 'sent':
      return 'A message containing the code has been sent.';
    case 'invalid-code':
      return 'Invalid code';
    case 'flood-send':
      return 'You have reached the hourly threshold for login attempts. Please try again later.';
    case 'flood-validate':
      return 'You have reached the threshold for incorrect code entry attempts. Please try again later.';
  }
}