From 569c99a73302271b80cd7c8a25356ea285606563 Mon Sep 17 00:00:00 2001 From: Michael Lüpkes Date: Tue, 13 Jan 2015 14:09:02 +0100 Subject: set maxlength for name input fields in templates --- app/Template/user/edit.php | 2 +- app/Template/user/new.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/Template/user') 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 @@ formHidden('is_ldap_user', $values) ?> formLabel(t('Username'), 'username') ?> - formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '')) ?>
+ formText('username', $values, $errors, array('required', $values['is_ldap_user'] == 1 ? 'readonly' : '', 'maxlength="50"')) ?>
formLabel(t('Name'), 'name') ?> formText('name', $values, $errors) ?>
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 @@ formCsrf() ?> formLabel(t('Username'), 'username') ?> - formText('username', $values, $errors, array('autofocus', 'required')) ?>
+ formText('username', $values, $errors, array('autofocus', 'required', 'maxlength="50"')) ?>
formLabel(t('Name'), 'name') ?> formText('name', $values, $errors) ?>
-- cgit v1.2.3