--- moodle/enrol/self/edit_form.php 2015-08-13 12:16:44.000000000 +0200 +++ www/moodle/enrol/self/edit_form.php 2015-08-26 11:35:39.775886026 +0200 @@ -34,6 +34,10 @@ $mform = $this->_form; + // HACK to prevent browsers from automatically inserting the user's password into the wrong fields. + $element = $mform->addElement('hidden'); + $element->setType('password'); + list($instance, $plugin, $context) = $this->_customdata; $mform->addElement('header', 'header', get_string('pluginname', 'enrol_self'));