Commit c95ae3d2 authored by Joshua Fernandes's avatar Joshua Fernandes Committed by Joao Ventura
Browse files

Issue #3317959 by joshua1234511, jcnventura: Empty "Login Plugin" displayed on TFA

parent a8f38091
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -134,11 +134,13 @@ class TfaOverviewForm extends FormBase {
            '#type' => 'details',
            '#title' => $this->t('Login plugins'),
            '#open' => TRUE,
            '#access' => FALSE,
          ];

          foreach ($login_plugins as $plugin_id => $plugin) {
            if (!empty($config->get('login_plugins')[$plugin_id])) {
              $output['login'][$plugin_id] = $this->tfaPluginSetupFormOverview($plugin, $user, TRUE);
              $output['login']['#access'] = TRUE;
            }
          }
        }