protected function TfaTestCase::uiStrings in Two-factor Authentication (TFA) 7.2
TFA module user interface strings.
Parameters
string $id: ID string.
Return value
string Appropriate string.
2 calls to TfaTestCase::uiStrings()
- TfaTestCase::testAuthentication in tests/
tfa.test - Test authentication.
- TfaTestCase::testFloodControl in tests/
tfa.test - Test flood control.
File
- tests/
tfa.test, line 398 - Drupal test cases for TFA.
Class
- TfaTestCase
- Tests the functionality of the TFA module.
Code
protected function uiStrings($id) {
switch ($id) {
case 'fallback-button':
return "Can't access your account?";
case 'flood-validate':
return 'You have reached the threshold for incorrect code entry attempts.';
case 'flood-begin':
return 'You have reached the threshold for TFA attempts.';
}
}