URL: /user/x/security/tfa
Error: Warning: Invalid argument supplied for foreach() in Drupal\tfa\Plugin\TfaSetup\TfaTrustedBrowserSetup->getOverview() (line 200 of modules/contrib/tfa/src/Plugin/TfaSetup/TfaTrustedBrowserSetup.php).
If trusted browser features was enabled and no browser is saved for the user.
Attached a patch to fix the issue.
| Comment | File | Size | Author |
|---|---|---|---|
| tfa-notice-trusted-browsers.patch | 741 bytes | ayalon |
Comments
Comment #2
feng-shui commentedPatch fixes the issue, trusted browsers can still be added and removed.
Comment #3
jcnventuraThanks for the review. Would be good to see if a few other reviewing this.
Comment #4
jcnventuraI wonder if it would not be simpler to:
return $this->getUserData('tfa', 'tfa_trusted_browser', $this->uid, $this->userData) ?: [];Comment #6
jcnventuraLet's try my option.
Comment #7
feng-shui commentedThanks for getting this in.