source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 echo "
"; // line 5 echo _gettext("Two-factor authentication status"); // line 6 echo " "; echo \PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("two_factor"); echo "
"; // line 9 if (($context["enabled"] ?? null)) { // line 10 echo " "; if ((($context["num_backends"] ?? null) == 0)) { // line 11 echo "

"; echo _gettext("Two-factor authentication is not available, please install optional dependencies to enable authentication backends."); echo "

"; // line 12 echo _gettext("Following composer packages are missing:"); echo "

    "; // line 14 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["missing"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 15 echo "
  • "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "dep", [], "any", false, false, false, 15), "html", null, true); echo " ("; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["item"], "class", [], "any", false, false, false, 15), "html", null, true); echo ")
  • "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 17 echo "
"; } else { // line 19 echo " "; if (($context["backend_id"] ?? null)) { // line 20 echo "

"; echo _gettext("Two-factor authentication is available and configured for this account."); echo "

"; } else { // line 22 echo "

"; echo _gettext("Two-factor authentication is available, but not configured for this account."); echo "

"; } // line 24 echo " "; } // line 25 echo " "; } else { // line 26 echo "

"; echo _gettext("Two-factor authentication is not available, enable phpMyAdmin configuration storage to use it."); echo "

"; } // line 28 echo "
"; // line 33 if (($context["backend_id"] ?? null)) { // line 34 echo "
"; // line 38 echo twig_escape_filter($this->env, ($context["backend_name"] ?? null), "html", null, true); echo "

"; // line 41 echo _gettext("You have enabled two factor authentication."); echo "

"; // line 42 echo twig_escape_filter($this->env, ($context["backend_description"] ?? null), "html", null, true); echo "

"; // line 44 echo PhpMyAdmin\Url::getHiddenInputs(); echo "
"; } elseif (( // line 52 ($context["num_backends"] ?? null) > 0)) { // line 53 echo "
"; // line 57 echo _gettext("Configure two-factor authentication"); // line 58 echo "
"; // line 61 echo PhpMyAdmin\Url::getHiddenInputs(); echo " "; // line 62 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["backends"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["backend"]) { // line 63 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['backend'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 70 echo "
"; } } public function getTemplateName() { return "preferences/two_factor/main.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 208 => 70, 199 => 67, 195 => 66, 191 => 65, 188 => 64, 185 => 63, 181 => 62, 177 => 61, 173 => 60, 169 => 58, 167 => 57, 161 => 53, 159 => 52, 150 => 46, 146 => 44, 142 => 43, 138 => 42, 134 => 41, 128 => 38, 122 => 34, 120 => 33, 113 => 28, 107 => 26, 104 => 25, 101 => 24, 95 => 22, 89 => 20, 86 => 19, 82 => 17, 71 => 15, 67 => 14, 62 => 12, 57 => 11, 54 => 10, 52 => 9, 45 => 6, 43 => 5, 37 => 1,); } public function getSourceContext() { return new Source("", "preferences/two_factor/main.twig", "/usr/local/www/phpMyAdmin/templates/preferences/two_factor/main.twig"); } }