You are here

protected function TfaBasicTestCase::uiStrings in TFA Basic plugins 7

TFA module user interface strings.

Parameters

string $id:

Return value

string

4 calls to TfaBasicTestCase::uiStrings()
TfaBasicTestCase::testRequired in tests/tfa_basic.test
TfaBasicTestCase::testTotpReplay in tests/tfa_basic.test
TfaBasicTestCase::_testAdminDisable in tests/tfa_basic.test
TfaBasicTestCase::_testAppAndRecoverySetup in tests/tfa_basic.test

File

tests/tfa_basic.test, line 327
tfa_basic.test. Drupal test cases for TFA basic plugins.

Class

TfaBasicTestCase
Tests the functionality of the TFA basic plugins.

Code

protected function uiStrings($id) {
  switch ($id) {
    case 'setup-app':
      return 'Set up application';
    case 'password-request':
      return 'Enter your current password to continue.';
    case 'pass-error':
      return 'Incorrect password';
    case 'app-step1':
      return 'Install authentication code application on your mobile or desktop device';
    case 'invalid-code-retry':
      return 'Invalid application code. Please try again.';
    case 'invalid-recovery-code':
      return 'Invalid recovery code.';
    case 'set-trust-skip':
      return 'Mark this browser as trusted or skip to continue and finish TFA setup';
    case 'set-recovery-codes':
      return 'Your recovery codes';
    case 'setup-complete':
      return 'TFA setup complete';
    case 'setup-trust':
      return 'Set trusted browsers';
    case 'setup-recovery':
      return 'Get recovery codes';
    case 'code-list':
      return 'View unused recovery codes';
    case 'app-desc':
      return 'Verification code is application generated and 6 digits long.';
    case 'fallback-button':
      return 'Can\'t access your account?';
    case 'recovery-prompt':
      return 'Enter one of your recovery codes';
    case 'tfa-status-enabled':
      return 'TFA enabled';
    case 'tfa-disable':
      return 'Disable TFA';
    case 'tfa-disable-confirm':
      return 'Are you sure you want to disable TFA on account';
    case 'tfa-disabled':
      return 'TFA has been disabled';
    case 'required':
      return 'Login disallowed. You are required to set up two-factor authentication.';
    case 'disable-required':
      return 'Your account must have at least one two-factor authentication method enabled. Continuing will disable your ability to log back into this site.';
    case 'tfa-replay':
      return 'Invalid code, it was recently used for a login. Please wait for the application to generate a new code.';
  }
}