Set autocomplete to Off to mitigate risk - see Webrevisor report 201012

skala
Yannick Warnier 14 years ago
parent a66d356470
commit fe02751626
  1. 4
      main/auth/inscription.php

@ -146,8 +146,8 @@ if ($display_all_form) {
$form->addRule('username', get_lang('UsernameWrong'), 'username');
$form->addRule('username', get_lang('UserTaken'), 'username_available');
// PASSWORD
$form->addElement('password', 'pass1', get_lang('Pass'), array('size' => 20));
$form->addElement('password', 'pass2', get_lang('Confirmation'), array('size' => 20));
$form->addElement('password', 'pass1', get_lang('Pass'), array('size' => 20, 'autocomplete' => 'off'));
$form->addElement('password', 'pass2', get_lang('Confirmation'), array('size' => 20, 'autocomplete' => 'off'));
$form->addRule('pass1', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule('pass2', get_lang('ThisFieldIsRequired'), 'required');
$form->addRule(array('pass1', 'pass2'), get_lang('PassTwo'), 'compare');

Loading…
Cancel
Save