Merge branch 'MDL-51083-28' of git://github.com/xow/moodle into MOODLE_28_STABLE

This commit is contained in:
David Monllao
2015-10-12 16:58:13 +08:00
3 changed files with 8 additions and 1 deletions
+2
View File
@@ -64,6 +64,8 @@ echo "<form id=\"authmenu\" method=\"post\" action=\"auth_config.php\">\n";
echo "<div>\n";
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />\n";
echo "<input type=\"hidden\" name=\"auth\" value=\"".$auth."\" />\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();
+4 -1
View File
@@ -1015,7 +1015,10 @@ class core_files_renderer extends plugin_renderer_base {
<label class="control-label"></label>
<div class="controls"><select></select></div>
</div>
</div>';
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
$rv .= prevent_form_autofill_password();
$rv .= '
<div class="fp-login-input control-group clearfix">
<label class="control-label"></label>
<div class="controls"><input/></div>
+2
View File
@@ -272,6 +272,8 @@ case 'sign':
echo '<form method="post">';
echo '<input type="hidden" name="action" value="sign" />';
echo '<input type="hidden" name="repo_id" value="'.s($repo_id).'" />';
// HACK to prevent browsers from automatically inserting the user's password into the wrong fields.
echo prevent_form_autofill_password();
$repo->print_login();
echo '</form>';
}