MDL-16108 force autocomplete off for unmaskable password fields; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2008-08-18 20:39:03 +00:00
parent 4180c52cc0
commit 3f2b8c4129

View File

@ -2052,6 +2052,7 @@ class admin_setting_configpasswordunmask extends admin_setting_configtext {
$unmaskjs = '<script type="text/javascript">
//<![CDATA[
document.write(\'<span class="unmask"><input id="'.$id.'unmask" value="1" type="checkbox" onclick="unmaskPassword(\\\''.$id.'\\\')"/><label for="'.$id.'unmask">'.addslashes_js($unmask).'<\/label><\/span>\');
document.getElementById("'.$this->get_id().'").setAttribute("autocomplete", "off");
//]]>
</script>';
return format_admin_setting($this, $this->visiblename,