diff --git a/blocks/login/block_login.php b/blocks/login/block_login.php index 03868888fcb..516a5faaeb6 100644 --- a/blocks/login/block_login.php +++ b/blocks/login/block_login.php @@ -35,6 +35,12 @@ class block_login extends block_base { // TODO: now that we have multiauth it is hard to find out if there is a way to change password $forgot = $wwwroot . '/login/forgot_password.php'; + if (empty($CFG->xmlstrictheaders) and !empty($CFG->loginpasswordautocomplete)) { + $autocomplete = 'autocomplete="off"'; + } else { + $autocomplete = ''; + } + $username = get_moodle_cookie(); $this->content->footer = ''; @@ -42,18 +48,14 @@ class block_login extends block_base { if (!isloggedin() or isguestuser()) { // Show the block - $this->content->text .= "\n".'