<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* server/privileges/login_information_fields.twig */
class __TwigTemplate_3aba763369b0fa489765cd4d5da13278fb24476a59c9e677c58bc237294cdf4f extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->parent = false;

        $this->blocks = [
            '__internal_0f06e2a32f408194c1f6dfbfdcf6a121f6c995ecf7b2514449b03ae9a9e002d5' => [$this, 'block___internal_0f06e2a32f408194c1f6dfbfdcf6a121f6c995ecf7b2514449b03ae9a9e002d5'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<fieldset id=\"fieldset_add_user_login\">
  <legend>";
        // line 2
        echo _gettext("Login Information");
        echo "</legend>
  <div class=\"item\">
    <label for=\"select_pred_username\">";
        // line 4
        echo _gettext("User name:");
        echo "</label>
    <span class=\"options\">
      <select name=\"pred_username\" id=\"select_pred_username\" title=\"";
        // line 6
        echo _gettext("User name");
        echo "\">
        <option value=\"any\"";
        // line 7
        echo (((($context["pred_username"] ?? null) == "any")) ? (" selected") : (""));
        echo ">";
        echo _gettext("Any user");
        echo "</option>
        <option value=\"userdefined\"";
        // line 8
        echo ((((null === ($context["pred_username"] ?? null)) || (($context["pred_username"] ?? null) == "userdefined"))) ? (" selected") : (""));
        echo ">";
        echo _gettext("Use text field");
        echo "</option>
      </select>
    </span>
    <input type=\"text\" name=\"username\" id=\"pma_username\" class=\"autofocus\" maxlength=\"";
        // line 11
        echo twig_escape_filter($this->env, ($context["username_length"] ?? null), "html", null, true);
        echo "\" title=\"";
        echo _gettext("User name");
        echo "\"";
        // line 12
        if ( !twig_test_empty(($context["g_username"] ?? null))) {
            echo " value=\"";
            echo twig_escape_filter($this->env, (( !(null === ($context["g_new_username"] ?? null))) ? (($context["g_new_username"] ?? null)) : (($context["g_username"] ?? null))), "html", null, true);
            echo "\"";
        }
        // line 13
        echo ((((null === ($context["pred_username"] ?? null)) || (($context["pred_username"] ?? null) == "userdefined"))) ? (" required") : (""));
        echo ">

    <div id=\"user_exists_warning\" class=\"hide\">
      ";
        // line 16
        echo call_user_func_array($this->env->getFilter('notice')->getCallable(), [_gettext("An account already exists with the same username but possibly a different hostname.")]);
        echo "
    </div>
  </div>

  <div class=\"item\">
    <label for=\"select_pred_hostname\">
      ";
        // line 22
        echo _gettext("Host name:");
        // line 23
        echo "    </label>
    <span class=\"options\">
      <select name=\"pred_hostname\" id=\"select_pred_hostname\" title=\"";
        // line 25
        echo _gettext("Host name");
        echo "\"";
        // line 26
        (((( !(null === ($context["this_host"] ?? null)) && (($context["this_host"] ?? null) != "localhost")) && (($context["this_host"] ?? null) != "127.0.0.1"))) ? (print (twig_escape_filter($this->env, ((" data-thishost=\"" . ($context["this_host"] ?? null)) . "\""), "html", null, true))) : (print ("")));
        echo ">
        <option value=\"any\"";
        // line 27
        echo (((($context["pred_hostname"] ?? null) == "any")) ? (" selected") : (""));
        echo ">";
        echo _gettext("Any host");
        echo "</option>
        <option value=\"localhost\"";
        // line 28
        echo (((($context["pred_hostname"] ?? null) == "localhost")) ? (" selected") : (""));
        echo ">";
        echo _gettext("Local");
        echo "</option>
        ";
        // line 29
        if ( !twig_test_empty(($context["this_host"] ?? null))) {
            // line 30
            echo "          <option value=\"thishost\"";
            echo (((($context["pred_hostname"] ?? null) == "thishost")) ? (" selected") : (""));
            echo ">";
            echo _gettext("This host");
            echo "</option>
        ";
        }
        // line 32
        echo "        <option value=\"hosttable\"";
        echo (((($context["pred_hostname"] ?? null) == "hosttable")) ? (" selected") : (""));
        echo ">";
        echo _gettext("Use host table");
        echo "</option>
        <option value=\"userdefined\"";
        // line 33
        echo (((($context["pred_hostname"] ?? null) == "userdefined")) ? (" selected") : (""));
        echo ">";
        echo _gettext("Use text field");
        echo "</option>
      </select>
    </span>
    <input type=\"text\" name=\"hostname\" id=\"pma_hostname\" maxlength=\"";
        // line 36
        echo twig_escape_filter($this->env, ($context["hostname_length"] ?? null), "html", null, true);
        echo "\" value=\"";
        echo twig_escape_filter($this->env, (((isset($context["g_hostname"]) || array_key_exists("g_hostname", $context))) ? (_twig_default_filter(($context["g_hostname"] ?? null), "%")) : ("%")), "html", null, true);
        echo "\" title=\"";
        // line 37
        echo _gettext("Host name");
        echo "\"";
        echo (((($context["pred_hostname"] ?? null) == "userdefined")) ? (" required") : (""));
        echo ">

    ";
        // line 39
        echo PhpMyAdmin\Util::showHint(_gettext("When Host table is used, this field is ignored and values stored in Host table are used instead."));
        echo "
  </div>

  <div class=\"item\">
    <label for=\"select_pred_password\">";
        // line 43
        echo _gettext("Password:");
        echo "</label>
    <span class=\"options\">
      <select name=\"pred_password\" id=\"select_pred_password\" title=\"";
        // line 45
        echo _gettext("Password");
        echo "\">
        ";
        // line 46
        if (($context["is_change"] ?? null)) {
            // line 47
            echo "          <option value=\"keep\" selected>";
            echo _gettext("Do not change the password");
            echo "</option>
        ";
        }
        // line 49
        echo "        <option value=\"none\"";
        echo ((( !(null === ($context["g_username"] ?? null)) &&  !($context["is_change"] ?? null))) ? (" selected") : (""));
        echo ">";
        echo _gettext("No password");
        echo "</option>
        <option value=\"userdefined\"";
        // line 50
        echo (((null === ($context["g_username"] ?? null))) ? (" selected") : (""));
        echo ">";
        echo _gettext("Use text field");
        echo "</option>
      </select>
    </span>
    <input type=\"password\" id=\"text_pma_pw\" name=\"pma_pw\" title=\"";
        // line 53
        echo _gettext("Password");
        echo "\"";
        echo (((null === ($context["g_username"] ?? null))) ? (" required") : (""));
        echo ">
    <span>";
        // line 54
        echo _pgettext(        "Password strength", "Strength:");
        echo "</span>
    <meter max=\"4\" id=\"password_strength_meter\" name=\"pw_meter\"></meter>
    <span id=\"password_strength\" name=\"pw_strength\"></span>
  </div>

  <div class=\"item\" id=\"div_element_before_generate_password\">
    <label for=\"text_pma_pw2\">";
        // line 60
        echo _gettext("Re-type:");
        echo "</label>
    <span class=\"options\">&nbsp;</span>
    <input type=\"password\" name=\"pma_pw2\" id=\"text_pma_pw2\" title=\"";
        // line 62
        echo _gettext("Re-type");
        echo "\"";
        echo (((null === ($context["g_username"] ?? null))) ? (" required") : (""));
        echo ">
  </div>

  <div class=\"item\" id=\"authentication_plugin_div\">
    <label for=\"select_authentication_plugin\">
      ";
        // line 67
        if (($context["is_new"] ?? null)) {
            // line 68
            echo "        ";
            echo _gettext("Authentication plugin");
            // line 69
            echo "      ";
        } else {
            // line 70
            echo "        ";
            echo _gettext("Password hashing method");
            // line 71
            echo "      ";
        }
        // line 72
        echo "    </label>
    <span class=\"options\">&nbsp;</span>

    ";
        // line 75
        echo ($context["auth_plugin_dropdown"] ?? null);
        echo "

    <div id=\"ssl_reqd_warning\"";
        // line 77
        echo (((($context["auth_plugin"] ?? null) != "sha256_password")) ? (" class=\"hide\"") : (""));
        echo ">
      ";
        // line 78
        echo call_user_func_array($this->env->getFilter('notice')->getCallable(), [        $this->renderBlock("__internal_0f06e2a32f408194c1f6dfbfdcf6a121f6c995ecf7b2514449b03ae9a9e002d5", $context, $blocks)]);
        // line 84
        echo "    </div>
  </div>
  ";
        // line 87
        echo "</fieldset>
";
    }

    // line 78
    public function block___internal_0f06e2a32f408194c1f6dfbfdcf6a121f6c995ecf7b2514449b03ae9a9e002d5($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 79
        echo "        ";
        echo _gettext("This method requires using an '<em>SSL connection</em>' or an '<em>unencrypted connection that encrypts the password using RSA</em>'; while connecting to the server.");
        // line 82
        echo "        ";
        echo PhpMyAdmin\Util::showMySQLDocu("sha256-authentication-plugin");
        echo "
      ";
    }

    public function getTemplateName()
    {
        return "server/privileges/login_information_fields.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  272 => 82,  269 => 79,  265 => 78,  260 => 87,  256 => 84,  254 => 78,  250 => 77,  245 => 75,  240 => 72,  237 => 71,  234 => 70,  231 => 69,  228 => 68,  226 => 67,  216 => 62,  211 => 60,  202 => 54,  196 => 53,  188 => 50,  181 => 49,  175 => 47,  173 => 46,  169 => 45,  164 => 43,  157 => 39,  150 => 37,  145 => 36,  137 => 33,  130 => 32,  122 => 30,  120 => 29,  114 => 28,  108 => 27,  104 => 26,  101 => 25,  97 => 23,  95 => 22,  86 => 16,  80 => 13,  74 => 12,  69 => 11,  61 => 8,  55 => 7,  51 => 6,  46 => 4,  41 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "server/privileges/login_information_fields.twig", "/home/files/phpmyadmin/release/phpMyAdmin-5.1+snapshot/templates/server/privileges/login_information_fields.twig");
    }
}
