source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 echo "

"; // line 3 echo _gettext("Two-factor authentication status"); // line 4 echo " "; echo PhpMyAdmin\Util::showDocu("two_factor"); echo "

"; // line 7 if (($context["enabled"] ?? null)) { // line 8 echo " "; if ((($context["num_backends"] ?? null) == 0)) { // line 9 echo "

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

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

"; } else { // line 17 echo " "; if (($context["backend_id"] ?? null)) { // line 18 echo "

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

"; } else { // line 20 echo "

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

"; } // line 22 echo " "; } // line 23 echo " "; } else { // line 24 echo "

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

"; } // line 26 echo "
"; // line 29 if (($context["backend_id"] ?? null)) { // line 30 echo "

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

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

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

"; // line 36 echo PhpMyAdmin\Url::getHiddenInputs(); echo "
"; } elseif (( // line 42 ($context["num_backends"] ?? null) > 0)) { // line 43 echo "

"; // line 44 echo _gettext("Configure two-factor authentication"); echo "

"; // line 47 echo PhpMyAdmin\Url::getHiddenInputs(); echo " "; // line 48 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["backends"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["backend"]) { // line 49 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 56 echo "
"; } } public function getTemplateName() { return "preferences/two_factor/main.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 188 => 56, 179 => 53, 175 => 52, 171 => 51, 168 => 50, 165 => 49, 161 => 48, 157 => 47, 151 => 44, 148 => 43, 146 => 42, 139 => 38, 135 => 36, 130 => 34, 126 => 33, 121 => 31, 118 => 30, 116 => 29, 111 => 26, 105 => 24, 102 => 23, 99 => 22, 93 => 20, 87 => 18, 84 => 17, 80 => 15, 69 => 13, 65 => 12, 60 => 10, 55 => 9, 52 => 8, 50 => 7, 43 => 4, 41 => 3, 37 => 1,); } public function getSourceContext() { return new Source("", "preferences/two_factor/main.twig", "/usr/local/www/phpMyAdmin/templates/preferences/two_factor/main.twig"); } }