class TfaBasicHelp in TFA Basic plugins 7
Class TfaBasicHelp
Hierarchy
- class \TfaBasePlugin
- class \TfaBasicHelp implements TfaValidationPluginInterface
Expanded class hierarchy of TfaBasicHelp
1 string reference to 'TfaBasicHelp'
- tfa_basic_tfa_api in ./
tfa_basic.module - Implements hook_tfa_api().
File
- includes/
tfa_help.inc, line 10 - class for TFA Basic
View source
class TfaBasicHelp extends TfaBasePlugin implements TfaValidationPluginInterface {
/**
* @copydoc TfaBasePlugin::getForm()
*/
public function getForm(array $form, array &$form_state) {
$default = t('Contact support to reset your access');
$content = variable_get('tfa_basic_help_text', $default);
$form['help'] = array(
'#type' => 'markup',
'#markup' => check_plain($content),
);
// Disallow login plugins from applying to this step.
$form['#tfa_no_login'] = TRUE;
return $form;
}
/**
* @copydoc TfaValidationPluginInterface::validateForm()
*/
public function validateForm(array $form, array &$form_state) {
// Unused.
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TfaBasePlugin:: |
protected | property | TFA code. | |
TfaBasePlugin:: |
protected | property | Code Length. | |
TfaBasePlugin:: |
protected | property | Context of current TFA process. | |
TfaBasePlugin:: |
protected | property | Encryption key. | |
TfaBasePlugin:: |
protected | property | Error messages. | |
TfaBasePlugin:: |
protected | property | Code is valid. | |
TfaBasePlugin:: |
constant | |||
TfaBasePlugin:: |
protected | function | Decrypt a encrypted string. | |
TfaBasePlugin:: |
protected | function | Decrypt using the deprecated Mcrypt extension. | |
TfaBasePlugin:: |
protected | function | Use OpenSSL to decrypt data that was originally encrypted with Mcrypt. | |
TfaBasePlugin:: |
protected | function | Encrypt a plaintext string. | |
TfaBasePlugin:: |
protected | function | Encrypt using the deprecated Mcrypt extension. | |
TfaBasePlugin:: |
protected | function | Generate a random string of characters of length $this->codeLength. | |
TfaBasePlugin:: |
public | function | Get error messages suitable for form_set_error(). | |
TfaBasePlugin:: |
public | function | Determine if the plugin can run for the current TFA context. | 2 |
TfaBasePlugin:: |
public | function | Submit form. | 1 |
TfaBasePlugin:: |
private | function | A timing safe equals comparison. | |
TfaBasePlugin:: |
protected | function | Validate code. | |
TfaBasePlugin:: |
public | function | Plugin constructor. | 3 |
TfaBasicHelp:: |
public | function |
@copydoc TfaBasePlugin::getForm() Overrides TfaValidationPluginInterface:: |
|
TfaBasicHelp:: |
public | function |
@copydoc TfaValidationPluginInterface::validateForm() Overrides TfaValidationPluginInterface:: |