Ver Fonte

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

Yannick Warnier há 14 anos atrás
pai
commit
fe02751626
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      main/auth/inscription.php

+ 2 - 2
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');