diff --git a/admin/auth_config.php b/admin/auth_config.php index e1a0fb08c8c..0c955f48050 100644 --- a/admin/auth_config.php +++ b/admin/auth_config.php @@ -64,6 +64,8 @@ echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; +// HACK to prevent browsers from automatically inserting the user's password into the wrong fields. +echo prevent_form_autofill_password(); // auth plugin description echo $OUTPUT->box_start(); diff --git a/files/renderer.php b/files/renderer.php index e878fa63437..7060a677607 100644 --- a/files/renderer.php +++ b/files/renderer.php @@ -1015,7 +1015,10 @@ class core_files_renderer extends plugin_renderer_base {
-
+ '; + // HACK to prevent browsers from automatically inserting the user's password into the wrong fields. + $rv .= prevent_form_autofill_password(); + $rv .= '
diff --git a/repository/filepicker.php b/repository/filepicker.php index 4ce0236020a..e488e3d4d41 100644 --- a/repository/filepicker.php +++ b/repository/filepicker.php @@ -272,6 +272,8 @@ case 'sign': echo ''; echo ''; echo ''; + // HACK to prevent browsers from automatically inserting the user's password into the wrong fields. + echo prevent_form_autofill_password(); $repo->print_login(); echo ''; }