mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-16108 force autocomplete off for unmaskable password fields; merged from MOODLE_19_STABLE
This commit is contained in:
parent
4180c52cc0
commit
3f2b8c4129
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user