From 02fb0429715e3d0778c19024bfc79d45d6d13be1 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Tue, 3 Dec 2013 16:22:04 +0100 Subject: [PATCH] Minor - adding autocomplete = off see BT#7084 --- main/admin/user_add.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main/admin/user_add.php b/main/admin/user_add.php index fa2831ed24..aafbc9a487 100644 --- a/main/admin/user_add.php +++ b/main/admin/user_add.php @@ -152,7 +152,7 @@ $form->addRule('picture', get_lang('OnlyImagesAllowed').' ('.implode(',', $allow // Username if (api_get_setting('login_is_email') != 'true') { - $form->addElement('text', 'username', get_lang('LoginName'), array('id'=> 'username', 'maxlength' => USERNAME_MAX_LENGTH)); + $form->addElement('text', 'username', get_lang('LoginName'), array('id'=> 'username', 'maxlength' => USERNAME_MAX_LENGTH, 'autocomplete' => 'off')); $form->addRule('username', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('username', sprintf(get_lang('UsernameMaxXCharacters'), (string)USERNAME_MAX_LENGTH), 'maxlength', USERNAME_MAX_LENGTH); $form->addRule('username', get_lang('OnlyLettersAndNumbersAllowed'), 'username'); @@ -181,9 +181,10 @@ if (count($extAuthSource) > 0) { $group[] = $form->createElement('static', '', '', '
'); } } + $group[] = $form->createElement('radio', 'password_auto', get_lang('Password'), get_lang('AutoGeneratePassword').'
', 1); $group[] = $form->createElement('radio', 'password_auto', 'id="radio_user_password"', null, 0); -$group[] = $form->createElement('password', 'password', null, array('id'=> 'password', 'onkeydown' => 'javascript: password_switch_radio_button();')); +$group[] = $form->createElement('password', 'password', null, array('id'=> 'password', 'autocomplete' => 'off', 'onkeydown' => 'javascript: password_switch_radio_button();')); $form->addGroup($group, 'password', get_lang('Password'), '');