Fix user name length limit on the account edit form

Change the maxlength attribute of the user name input field such that it
corresponds to the username_max_len option.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-10-25 10:43:05 +01:00
parent 9bbbd665e7
commit f9ac67f691

View file

@ -17,7 +17,7 @@
<fieldset> <fieldset>
<p> <p>
<label for="id_username"><?= __("Username") ?>:</label> <label for="id_username"><?= __("Username") ?>:</label>
<input type="text" size="30" maxlength="64" name="U" id="id_username" value="<?= htmlspecialchars($U,ENT_QUOTES) ?>" /> (<?= __("required") ?>) <input type="text" size="30" maxlength="<?= config_get_int('options', 'username_max_len'); ?>" name="U" id="id_username" value="<?= htmlspecialchars($U,ENT_QUOTES) ?>" /> (<?= __("required") ?>)
</p> </p>
<?php <?php
# Only TUs or Devs can promote/demote/suspend a user # Only TUs or Devs can promote/demote/suspend a user