- last update
8 months ago Patch Failed to Apply - Status changed to Needs work
8 months ago 11:23pm 28 October 2023 - First commit to issue fork.
Consider function tfa_get_context($account)
:
/**
* Context for account TFA process.
*
* @param $account User account
* @return array
* @see tfa_start_context() for format
*/
function tfa_get_context($account) {
$context = array();
if (isset($_SESSION['tfa'][$account->uid])) {
$context = $_SESSION['tfa'][$account->uid];
}
// Allow other modules to modify TFA context.
drupal_alter('tfa_context', $context);
return $context;
}
It has drupal_alter('tfa_context', $context)
. There is no documentation for this in tfa.api.php
.
Context is explained here → , but an API documentation always helps a developer. Also a sample code about how we can alter the context will help.
N/A
N/A
N/A
Please add the documentation for drupal_alter('tfa_context', $context)
in tfa.api.php
.
Thanks.
Needs work
2.0
Documentation
The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.