<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* server/privileges/login_information_fields.twig */
class __TwigTemplate_700ac7456aef52dda6099559b7f24d80 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
// line 1
yield "<fieldset class=\"pma-fieldset\" id=\"fieldset_add_user_login\">
<legend>";
yield _gettext("Login Information");
// line 2
yield "</legend>
<div class=\"item\">
<label for=\"select_pred_username\">";
yield _gettext("User name:");
// line 4
yield "</label>
<span class=\"options\">
<select name=\"pred_username\" id=\"select_pred_username\" title=\"";
yield _gettext("User name");
// line 6
yield "\">
<option value=\"any\"";
// line 7
yield (((($context["pred_username"] ?? null) == "any")) ? (" selected") : (""));
yield ">";
yield _gettext("Any user");
yield "</option>
<option value=\"userdefined\"";
// line 8
yield ((((null === ($context["pred_username"] ?? null)) || (($context["pred_username"] ?? null) == "userdefined"))) ? (" selected") : (""));
yield ">";
yield _gettext("Use text field");
yield "</option>
</select>
</span>
<input type=\"text\" name=\"username\" id=\"pma_username\" class=\"autofocus\" spellcheck=\"false\" maxlength=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username_length"] ?? null), "html", null, true);
yield "\" title=\"";
yield _gettext("User name");
yield "\"";
// line 12
if ( !Twig\Extension\CoreExtension::testEmpty(($context["username"] ?? null))) {
yield " value=\"";
yield (( !(null === ($context["new_username"] ?? null))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["new_username"] ?? null), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username"] ?? null), "html", null, true)));
yield "\"";
}
// line 13
yield ((((null === ($context["pred_username"] ?? null)) || (($context["pred_username"] ?? null) == "userdefined"))) ? (" required") : (""));
yield ">
<div id=\"user_exists_warning\" class=\"hide\">
";
// line 16
yield $this->env->getFilter('notice')->getCallable()(_gettext("An account already exists with the same username but possibly a different hostname."));
yield "
</div>
</div>
<div class=\"item\">
<label for=\"select_pred_hostname\">
";
yield _gettext("Host name:");
// line 23
yield " </label>
<span class=\"options\">
<select name=\"pred_hostname\" id=\"select_pred_hostname\" title=\"";
yield _gettext("Host name");
// line 25
yield "\"";
// line 26
yield (((( !(null === ($context["this_host"] ?? null)) && (($context["this_host"] ?? null) != "localhost")) && (($context["this_host"] ?? null) != "127.0.0.1"))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((" data-thishost=\"" . ($context["this_host"] ?? null)) . "\""), "html", null, true)) : (""));
yield ">
<option value=\"any\"";
// line 27
yield (((($context["pred_hostname"] ?? null) == "any")) ? (" selected") : (""));
yield ">";
yield _gettext("Any host");
yield "</option>
<option value=\"localhost\"";
// line 28
yield (((($context["pred_hostname"] ?? null) == "localhost")) ? (" selected") : (""));
yield ">";
yield _gettext("Local");
yield "</option>
";
// line 29
if ( !Twig\Extension\CoreExtension::testEmpty(($context["this_host"] ?? null))) {
// line 30
yield " <option value=\"thishost\"";
yield (((($context["pred_hostname"] ?? null) == "thishost")) ? (" selected") : (""));
yield ">";
yield _gettext("This host");
yield "</option>
";
}
// line 32
yield " <option value=\"hosttable\"";
yield (((($context["pred_hostname"] ?? null) == "hosttable")) ? (" selected") : (""));
yield ">";
yield _gettext("Use host table");
yield "</option>
<option value=\"userdefined\"";
// line 33
yield (((($context["pred_hostname"] ?? null) == "userdefined")) ? (" selected") : (""));
yield ">";
yield _gettext("Use text field");
yield "</option>
</select>
</span>
<input type=\"text\" name=\"hostname\" id=\"pma_hostname\" maxlength=\"";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["hostname_length"] ?? null), "html", null, true);
yield "\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("hostname", $context)) ? (Twig\Extension\CoreExtension::default(($context["hostname"] ?? null), "%")) : ("%")), "html", null, true);
yield "\" title=\"";
yield _gettext("Host name");
// line 37
yield "\"";
yield (((($context["pred_hostname"] ?? null) == "userdefined")) ? (" required") : (""));
yield ">
";
// line 39
yield PhpMyAdmin\Html\Generator::showHint(_gettext("When Host table is used, this field is ignored and values stored in Host table are used instead."));
yield "
</div>
<div class=\"item\">
<label for=\"select_pred_password\">";
yield _gettext("Password:");
// line 43
yield "</label>
<span class=\"options\">
<select name=\"pred_password\" id=\"select_pred_password\" title=\"";
yield _gettext("Password");
// line 45
yield "\">
";
// line 46
if (($context["is_change"] ?? null)) {
// line 47
yield " <option value=\"keep\" selected>";
yield _gettext("Do not change the password");
yield "</option>
";
}
// line 49
yield " <option value=\"none\"";
yield ((( !(null === ($context["username"] ?? null)) && !($context["is_change"] ?? null))) ? (" selected") : (""));
yield ">";
yield _gettext("No password");
yield "</option>
<option value=\"userdefined\"";
// line 50
yield (((null === ($context["username"] ?? null))) ? (" selected") : (""));
yield ">";
yield _gettext("Use text field");
yield "</option>
</select>
</span>
<input type=\"password\" spellcheck=\"false\" id=\"text_pma_pw\" name=\"pma_pw\" title=\"";
yield _gettext("Password");
// line 53
yield "\"";
yield (((null === ($context["username"] ?? null))) ? (" required") : (""));
yield ">
<span>";
yield _pgettext("Password strength", "Strength:");
// line 54
yield "</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\">";
yield _gettext("Re-type:");
// line 60
yield "</label>
<span class=\"options\"> </span>
<input type=\"password\" spellcheck=\"false\" name=\"pma_pw2\" id=\"text_pma_pw2\" title=\"";
yield _gettext("Re-type");
// line 62
yield "\"";
yield (((null === ($context["username"] ?? null))) ? (" required") : (""));
yield ">
</div>
<div class=\"item\" id=\"authentication_plugin_div\">
<label for=\"select_authentication_plugin\">
";
// line 67
if (($context["is_new"] ?? null)) {
// line 68
yield " ";
yield _gettext("Authentication plugin");
// line 69
yield " ";
} else {
// line 70
yield " ";
yield _gettext("Password hashing method");
// line 71
yield " ";
}
// line 72
yield " </label>
<span class=\"options\"> </span>
<select name=\"authentication_plugin\" id=\"select_authentication_plugin\">
";
// line 76
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["active_auth_plugins"] ?? null));
foreach ($context['_seq'] as $context["plugin_name"] => $context["plugin_description"]) {
// line 77
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["plugin_name"], "html", null, true);
yield "\"";
yield ((($context["plugin_name"] == ($context["auth_plugin"] ?? null))) ? (" selected") : (""));
yield ">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["plugin_description"], "html", null, true);
yield "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['plugin_name'], $context['plugin_description'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
yield " </select>
<div id=\"ssl_reqd_warning\"";
// line 81
yield (((($context["auth_plugin"] ?? null) != "sha256_password")) ? (" class=\"hide\"") : (""));
yield ">
";
// line 82
$_v0 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 83
yield " ";
yield _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 86
yield " ";
yield PhpMyAdmin\Html\MySQLDocumentation::show("sha256-authentication-plugin");
yield "
";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 82
yield $this->env->getFilter('notice')->getCallable()($_v0);
// line 88
yield " </div>
</div>
";
// line 91
yield "</fieldset>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "server/privileges/login_information_fields.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 292 => 91, 288 => 88, 286 => 82, 279 => 86, 276 => 83, 274 => 82, 270 => 81, 266 => 79, 253 => 77, 249 => 76, 243 => 72, 240 => 71, 237 => 70, 234 => 69, 231 => 68, 229 => 67, 220 => 62, 215 => 60, 206 => 54, 200 => 53, 191 => 50, 184 => 49, 178 => 47, 176 => 46, 173 => 45, 168 => 43, 160 => 39, 154 => 37, 148 => 36, 140 => 33, 133 => 32, 125 => 30, 123 => 29, 117 => 28, 111 => 27, 107 => 26, 105 => 25, 100 => 23, 90 => 16, 84 => 13, 78 => 12, 73 => 11, 65 => 8, 59 => 7, 56 => 6, 51 => 4, 46 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "server/privileges/login_information_fields.twig", "/usr/share/phpmyadmin/templates/server/privileges/login_information_fields.twig");
}
}