Merge pull request #10075 from Chocobo1/login

Add autocomplete attribute to WebUI
This commit is contained in:
Mike Tzou 2019-01-03 14:15:11 +08:00 committed by GitHub
commit f3c65f34b6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -716,7 +716,7 @@
<label for="webui_password_text">QBT_TR(Password:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td>
<td>
<input type="password" id="webui_password_text" placeholder="QBT_TR(Change current password)QBT_TR[CONTEXT=OptionsDialog]" />
<input type="password" id="webui_password_text" placeholder="QBT_TR(Change current password)QBT_TR[CONTEXT=OptionsDialog]" autocomplete="new-password" />
</td>
</tr>
</table>

View file

@ -62,10 +62,10 @@
<form id="loginform">
<div class="row">
<label for="username">QBT_TR(Username)QBT_TR[CONTEXT=HttpServer]</label><br />
<input type="text" id="username" name="username" /></div>
<input type="text" id="username" name="username" autocomplete="username" /></div>
<div class="row">
<label for="password">QBT_TR(Password)QBT_TR[CONTEXT=HttpServer]</label><br />
<input type="password" id="password" name="password" /></div>
<input type="password" id="password" name="password" autocomplete="current-password" /></div>
<div class="row">
<input type="submit" id="login" value="QBT_TR(Login)QBT_TR[CONTEXT=HttpServer]" />
</div>