summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-10-25 10:43:05 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2015-10-25 10:46:11 +0100
commitf9ac67f6917eb5f4db89cf8407a33ad37d7f3935 (patch)
tree5e49ecf6464cd3cdd85169209ff63bb370aa59d4 /web
parent9bbbd665e7556bd67e15562c9e6674260f99f1ba (diff)
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>
Diffstat (limited to 'web')
-rw-r--r--web/template/account_edit_form.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/account_edit_form.php b/web/template/account_edit_form.php
index 16655c0..b25ff39 100644
--- a/web/template/account_edit_form.php
+++ b/web/template/account_edit_form.php
@@ -17,7 +17,7 @@
<fieldset>
<p>
<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>
<?php
# Only TUs or Devs can promote/demote/suspend a user