MDL-55476 auth: remove loginpasswordautocomplete

This commit is contained in:
Jade Telford 2017-01-19 05:03:29 +00:00
parent d97582fd27
commit 8380658219
11 changed files with 22 additions and 33 deletions

View file

@ -2465,5 +2465,10 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2016122800.00);
}
if ($oldversion < 2017011900.00) {
unset_config('loginpasswordautocomplete');
upgrade_main_savepoint(true, 2017011900.00);
}
return true;
}

View file

@ -33,7 +33,6 @@
"instructions": "For full access to this site, you first need to create an account.",
"loginurl": "http://example.com/stable_master/login/index.php",
"rememberusername": true,
"passwordautocomplete": false,
"signupurl": "http://localhost/stable_master/login/signup.php",
"cookieshelpiconformatted": "",
"username": ""
@ -62,7 +61,7 @@
{{{errorformatted}}}
</div>
{{/error}}
<form action="{{loginurl}}" method="post" id="login" {{^passwordautocomplete}}autocomplete="off"{{/passwordautocomplete}}>
<form action="{{loginurl}}" method="post" id="login">
<div class="loginform">
<div class="form-label">
<label for="username">
@ -82,7 +81,7 @@
<label for="password">{{#str}} password {{/str}}</label>
</div>
<div class="form-input">
<input type="password" name="password" id="password" size="15" value="" {{^passwordautocomplete}}autocomplete="off"{{/passwordautocomplete}}>
<input type="password" name="password" id="password" size="15" value=">
</div>
</div>