summaryrefslogtreecommitdiff
path: root/app/Template/user
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-19 21:35:48 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-19 21:35:48 -0500
commitef73844ddb6d7edfede2a6668d2e058a5052b8e1 (patch)
treed9163df4be621cfa23b5ef446a39ce76894214fc /app/Template/user
parent51d77786deae14cfa4a7afbf3b097424db8e187b (diff)
parent99323ba5c80ab01f6d66548262d281e30ecbed6a (diff)
Merge pull-request #515
Diffstat (limited to 'app/Template/user')
-rw-r--r--app/Template/user/edit.php2
-rw-r--r--app/Template/user/new.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/Template/user/edit.php b/app/Template/user/edit.php
index 43171d29..310a1ed0 100644
--- a/app/Template/user/edit.php
+++ b/app/Template/user/edit.php
@@ -9,7 +9,7 @@
<?= $this->formHidden('is_ldap_user', $values) ?>
<?= $this->formLabel(t('Username'), 'username') ?>
- <?= $this->formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '')) ?><br/>
+ <?= $this->formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Name'), 'name') ?>
<?= $this->formText('name', $values, $errors) ?><br/>
diff --git a/app/Template/user/new.php b/app/Template/user/new.php
index 1413bd3d..e56f38b1 100644
--- a/app/Template/user/new.php
+++ b/app/Template/user/new.php
@@ -10,7 +10,7 @@
<?= $this->formCsrf() ?>
<?= $this->formLabel(t('Username'), 'username') ?>
- <?= $this->formText('username', $values, $errors, array('autofocus', 'required')) ?><br/>
+ <?= $this->formText('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?><br/>
<?= $this->formLabel(t('Name'), 'name') ?>
<?= $this->formText('name', $values, $errors) ?><br/>