Skip to content

Commit

Permalink
autocomplete off for password inputs (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminHae committed Dec 8, 2016
1 parent dba1265 commit 126fccf
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function isAllHTML5Supports(){
<label for="user" class="control-label sr-only">User Name: </label>
<input type="text" class="form-control" placeholder="User Name" name="user" id="user" />
<label for="pwd" class="control-label sr-only">Password: </label>
<input type="password" class="form-control" placeholder="Password" name="pwd" id="pwd" />
<input type="password" autocomplete="off" class="form-control" placeholder="Password" name="pwd" id="pwd" />
</div>
<div class="form-group">
<input type="submit" class="btn btn-lg btn-success btn-block" id="chk" value="Login" />
Expand All @@ -106,7 +106,7 @@ function isAllHTML5Supports(){
<form id="pinloginform">
<div class="form-group">
<label for="pin" class="control-label">PIN:</label>
<input id="pin" class="form-control" type="password" />
<input id="pin" autocomplete="off" class="form-control" type="password" />
<label class="small" style="display:block; clear:both;">You see this window because you or someone set an PIN in this device and choose it as default login method. To switch account or disable PIN, please press the red button below. To use username/password to login only this time, close this window by pressing the 'X' at top-right corner.</label>
<label class="small" style="display:block; clear:both; color:red">Closing this window only let you use username/password to login this time. PIN will still be chosen as default method in future. Press red button below if you want to disable current PIN.</label>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/password.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ function setCookie(cname, cvalue) {
<form id="pinloginform">
<div class="form-group">
<label for="pinxx" class="control-label">PIN:</label>
<input id="pinxx" class="form-control" type="password" />
<input id="pinxx" autocomplete="off" class="form-control" type="password" />
<label class="small" style="display:block; clear:both; color:red">Only set PIN in your trusted devices!</label>
<label class="small" style="display:block; clear:both;">PIN can be set on your trusted devices to give you convenience while login. If you set PIN, you can use PIN instead of username and password to login next time. PIN is safe, you only have 3 chances to input a PIN before it's disabled automatically.</label>
</div>
Expand Down Expand Up @@ -371,15 +371,15 @@ function setCookie(cname, cvalue) {
<form>
<div class="form-group">
<label for="oldpassword" class="control-label">Old Password:</label>
<input id="oldpassword" class="form-control" type="password" />
<input id="oldpassword" autocomplete="off" class="form-control" type="password" />
</div>
<div class="form-group">
<label for="pwd" class="control-label">New Password:</label>
<input id="pwd" class="form-control" type="password" />
<input id="pwd" autocomplete="off" class="form-control" type="password" />
</div>
<div class="form-group">
<label for="pwd1" class="control-label">New Password Again:</label>
<input id="pwd1" class="form-control" type="password" />
<input id="pwd1" autocomplete="off" class="form-control" type="password" />
</div>
</form>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/recovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<p style="color:red">Select backup.txt containing your backup data.</p>
<input type="file" id="backupc" accept=".txt" />
<p> </p>
<p>Password: <input type="password" name="pwd" id="pwd" /></p><br />
<p>Password: <input type="password" autocomplete="off" name="pwd" id="pwd" /></p><br />
<p style="color:red">Input the login password when you generate the backup file.</p>
<p> </p>
<p style="color:red">Recovering takes long time. (No less than backup time) If your web browser asks you whether to kill the page due to no response, choose [wait]!</p>
Expand Down
4 changes: 2 additions & 2 deletions src/signup.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
</div>
<div class="form-group">
<label for="pwd" class="control-label">Password: </label>
<input type="password" class="form-control"name="pwd" id="pwd" />
<input type="password" autocomplete="off" class="form-control"name="pwd" id="pwd" />
</div>
<div class="form-group">
<label for="pwd1" class="control-label">Input Password Again: </label>
<input type="password" class="form-control"name="pwd1" id="pwd1" />
<input type="password" autocomplete="off" class="form-control"name="pwd1" id="pwd1" />
</div>
<div class="form-group">
<label for="email" class="control-label">Email:</label>
Expand Down

0 comments on commit 126fccf

Please sign in to comment.