Browse Source

Add autocomplete attribute to WebUI

This helps the password manager to identify each field and provide
adequate actions.
adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
d133ccc69f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/webui/www/private/preferences_content.html
  2. 4
      src/webui/www/public/login.html

2
src/webui/www/private/preferences_content.html

@ -716,7 +716,7 @@
<label for="webui_password_text">QBT_TR(Password:)QBT_TR[CONTEXT=OptionsDialog]</label> <label for="webui_password_text">QBT_TR(Password:)QBT_TR[CONTEXT=OptionsDialog]</label>
</td> </td>
<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> </td>
</tr> </tr>
</table> </table>

4
src/webui/www/public/login.html

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

Loading…
Cancel
Save