<?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/change_password.twig */
class __TwigTemplate_4533363cbc573f3e6dad6a21331b9486 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 "<form method=\"post\" id=\"change_password_form\" action=\"";
// line 2
yield ((($context["is_privileges"] ?? null)) ? (PhpMyAdmin\Url::getFromRoute("/server/privileges")) : (PhpMyAdmin\Url::getFromRoute("/user-password")));
yield "\" name=\"chgPassword\" class=\"";
yield ((($context["is_privileges"] ?? null)) ? ("submenu-item") : (""));
yield "\" autocomplete=\"off\">
";
// line 3
yield PhpMyAdmin\Url::getHiddenInputs();
yield "
";
// line 4
if (($context["is_privileges"] ?? null)) {
// line 5
yield " <input type=\"hidden\" name=\"username\" value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["username"] ?? null), "html", null, true);
yield "\">
<input type=\"hidden\" name=\"hostname\" value=\"";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["hostname"] ?? null), "html", null, true);
yield "\">
";
}
// line 8
yield "
<fieldset class=\"pma-fieldset\" id=\"fieldset_change_password\">
<legend";
// line 10
yield ((($context["is_privileges"] ?? null)) ? (" data-submenu-label=\"Change password\"") : (""));
yield ">";
yield _gettext("Change password");
yield "</legend>
<table class=\"table table-borderless w-auto\">
<tr>
<td colspan=\"2\">
<input type=\"radio\" name=\"nopass\" value=\"1\" id=\"nopass_1\">
<label for=\"nopass_1\">";
yield _gettext("No Password");
// line 15
yield "</label>
</td>
</tr>
<tr class=\"align-middle\">
<td>
<input type=\"radio\" name=\"nopass\" value=\"0\" id=\"nopass_0\" checked=\"checked\">
<label for=\"nopass_0\">";
yield _gettext("Password:");
// line 21
yield " </label>
</td>
<td>
";
yield _gettext("Enter:");
// line 24
yield "
<input type=\"password\" spellcheck=\"false\" name=\"pma_pw\" id=\"text_pma_change_pw\" size=\"10\" class=\"textfield\"
onkeyup=\"Functions.checkPasswordStrength(\$(this).val(), \$('#change_password_strength_meter'), meter_obj_label = \$('#change_password_strength'), CommonParams.get('user'));\"
onchange=\"nopass[1].checked = true\" autocomplete=\"new-password\">
<span>";
yield _pgettext("Password strength", "Strength:");
// line 28
yield "</span>
<meter max=\"4\" id=\"change_password_strength_meter\" name=\"pw_meter\"></meter>
<span id=\"change_password_strength\" name=\"pw_strength\"></span>
<br>
";
yield _gettext("Re-type:");
// line 32
yield "
<input type=\"password\" spellcheck=\"false\" name=\"pma_pw2\" id=\"text_pma_change_pw2\" size=\"10\" class=\"textfield\" onchange=\"nopass[1].checked = true\" autocomplete=\"new-password\">
</td>
</tr>
";
// line 37
if (( !($context["is_new"] ?? null) || (($context["is_new"] ?? null) && ($context["has_more_auth_plugins"] ?? null)))) {
// line 38
yield " <tr class=\"align-middle\">
<td>
<label for=\"select_authentication_plugin_cp\">";
yield _gettext("Password Hashing:");
// line 40
yield "</label>
</td>
<td>
<select name=\"authentication_plugin\" id=\"select_authentication_plugin_cp\">
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["active_auth_plugins"] ?? null));
foreach ($context['_seq'] as $context["plugin_name"] => $context["plugin_description"]) {
// line 45
yield " <option value=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["plugin_name"], "html", null, true);
yield "\"";
yield ((($context["plugin_name"] == ($context["orig_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 47
yield " </select>
</td>
</tr>
";
}
// line 51
yield "
<tr id=\"tr_element_before_generate_password\"></tr>
</table>
";
// line 55
if ((($context["is_new"] ?? null) && ($context["has_more_auth_plugins"] ?? null))) {
// line 56
yield " <div";
yield (((($context["orig_auth_plugin"] ?? null) != "sha256_password")) ? (" class=\"hide\"") : (""));
yield " id=\"ssl_reqd_warning_cp\">
";
// line 57
$_v0 = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
// line 58
yield " ";
yield _gettext("This method requires using an '<i>SSL connection</i>' or an '<i>unencrypted connection that encrypts the password using RSA</i>'; while connecting to the server.");
// line 61
yield " ";
yield PhpMyAdmin\Html\MySQLDocumentation::show("sha256-authentication-plugin");
yield "
";
yield from [];
})())) ? '' : new Markup($tmp, $this->env->getCharset());
// line 57
yield $this->env->getFilter('notice')->getCallable()($_v0);
// line 63
yield " </div>
";
}
// line 65
yield "
</fieldset>
<fieldset id=\"fieldset_change_password_footer\" class=\"pma-fieldset tblFooters\">
<input type=\"hidden\" name=\"change_pw\" value=\"1\">
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
yield _gettext("Go");
// line 70
yield "\">
</fieldset>
</form>
";
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "server/privileges/change_password.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 192 => 70, 184 => 65, 180 => 63, 178 => 57, 171 => 61, 168 => 58, 166 => 57, 161 => 56, 159 => 55, 153 => 51, 147 => 47, 134 => 45, 130 => 44, 124 => 40, 119 => 38, 117 => 37, 110 => 32, 103 => 28, 96 => 24, 90 => 21, 81 => 15, 70 => 10, 66 => 8, 61 => 6, 56 => 5, 54 => 4, 50 => 3, 44 => 2, 42 => 1,);
}
public function getSourceContext(): Source
{
return new Source("", "server/privileges/change_password.twig", "/usr/share/phpmyadmin/templates/server/privileges/change_password.twig");
}
}