Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2020-07-30 01:09:48 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2020-07-30 01:12:35 +0300
commitc92663adbb95c6807a9641c5ab8362286a038365 (patch)
tree706053d4cb12fd6c7931bfd9c8e2e9514022cace /templates/display
parent904d8f99c66ed603a54dc28725465761f49548d6 (diff)
Move ChangePassword::getHtml to Server\Privileges class
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'templates/display')
-rw-r--r--templates/display/change_password.twig72
1 files changed, 0 insertions, 72 deletions
diff --git a/templates/display/change_password.twig b/templates/display/change_password.twig
deleted file mode 100644
index 0baa79dab8..0000000000
--- a/templates/display/change_password.twig
+++ /dev/null
@@ -1,72 +0,0 @@
-<form method="post" id="change_password_form" action="
- {{- is_privileges ? url('/server/privileges') : url('/user-password') }}" name="chgPassword" class="{{ is_privileges ? 'submenu-item' }}">
- {{ get_hidden_inputs() }}
- {% if is_privileges %}
- <input type="hidden" name="username" value="{{ username }}">
- <input type="hidden" name="hostname" value="{{ hostname }}">
- {% endif %}
-
- <fieldset id="fieldset_change_password">
- <legend{{ is_privileges ? ' data-submenu-label="Change password"' }}>{% trans 'Change password' %}</legend>
- <table class="data noclick">
- <tr>
- <td colspan="2">
- <input type="radio" name="nopass" value="1" id="nopass_1" onclick="pma_pw.value = ''; pma_pw2.value = ''; this.checked = true">
- <label for="nopass_1">{% trans 'No Password' %}</label>
- </td>
- </tr>
- <tr class="vmiddle">
- <td>
- <input type="radio" name="nopass" value="0" id="nopass_0" onclick="document.getElementById('text_pma_change_pw').focus();" checked="checked">
- <label for="nopass_0">{% trans 'Password:' %}&nbsp;</label>
- </td>
- <td>
- {% trans 'Enter:' %}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <input type="password" 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">
- <span>Strength:</span>
- <meter max="4" id="change_password_strength_meter" name="pw_meter"></meter>
- <span id="change_password_strength" name="pw_strength">Good</span>
- <br>
- {% trans 'Re-type:' %}&nbsp;
- <input type="password" name="pma_pw2" id="text_pma_change_pw2" size="10" class="textfield" onchange="nopass[1].checked = true">
- </td>
- </tr>
-
- {% if not is_new or (is_new and has_more_auth_plugins) %}
- <tr class="vmiddle">
- <td>
- <label for="select_authentication_plugin_cp">{% trans 'Password Hashing:' %}</label>
- </td>
- <td>
- <select name="authentication_plugin" id="select_authentication_plugin_cp">
- {% for plugin_name, plugin_description in active_auth_plugins %}
- <option value="{{ plugin_name }}"{{ plugin_name == orig_auth_plugin ? ' selected' }}>{{ plugin_description }}</option>
- {% endfor %}
- </select>
- </td>
- </tr>
- {% endif %}
-
- <tr id="tr_element_before_generate_password"></tr>
- </table>
-
- {% if is_new and has_more_auth_plugins %}
- <div{{ orig_auth_plugin != 'sha256_password' ? ' class="hide"' }} id="ssl_reqd_warning_cp">
- {% apply notice %}
- {% trans %}
- 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.
- {% endtrans %}
- {{ show_mysql_docu('sha256-authentication-plugin') }}
- {% endapply %}
- </div>
- {% endif %}
-
- </fieldset>
-
- <fieldset id="fieldset_change_password_footer" class="tblFooters">
- <input type="hidden" name="change_pw" value="1">
- <input class="btn btn-primary" type="submit" value="{% trans 'Go' %}">
- </fieldset>
-</form>