Commit 0c3afa1a authored by Damien McKenna's avatar Damien McKenna Committed by Joao Ventura
Browse files

Issue #3318879 by DamienMcKenna, jcnventura: Notice: Undefined index: expires in tfa_entry_access()

parent 500f5729
Loading
Loading
Loading
Loading
+1 −1
Changes for tfa.module: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ function tfa_entry_access($account, $url_hash) {
  // Generate a hash for this account.
  $hash = tfa_login_hash($account);
  $context = tfa_get_context($account);
  if (REQUEST_TIME > $context['expires']) {
  if ((isset($context['expires']) && REQUEST_TIME > $context['expires']) || empty($context['expires'])) {
    drupal_set_message(t('TFA session has expired.'));
    return FALSE;
  }