Merge branch 'MDL-56250-32-formvalidation' of https://github.com/roperto/moodle
[moodle.git] / lib / formslib.php
index 8fda3fa..23dce84 100644 (file)
@@ -2752,8 +2752,6 @@ class MoodleQuickForm_Renderer extends HTML_QuickForm_Renderer_Tableless{
         $this->_collapseButtons = '';
         $formid = $form->getAttribute('id');
         parent::startForm($form);
-        // HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
-        $this->_hiddenHtml .= prevent_form_autofill_password();
         if ($form->isFrozen()){
             $this->_formTemplate = "\n<div class=\"mform frozen\">\n{content}\n</div>";
         } else {