Skip to content

Commit

Permalink
Try readonly workaround for new password autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
coudot committed Apr 20, 2023
1 parent 36a1ccc commit c5b3bee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions htdocs/js/service-desk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$(document).ready(function(){
$("input#newpassword").onfocus( $("input#newpassword").removeAttr("readonly") );
});
2 changes: 1 addition & 1 deletion templates/display.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<div class="form-group">
<div class="input-group">
<span class="input-group-addon"><i class="fa fa-fw fa-lock"></i></span>
<input type="password" name="newpassword" id="newpassword" autocomplete="new-password" class="form-control" placeholder="{$msg_newpassword}" />
<input type="password" name="newpassword" id="newpassword" readonly autocomplete="new-password" class="form-control" placeholder="{$msg_newpassword}" />
</div>
</div>
{if $use_resetpassword_resetchoice}
Expand Down
1 change: 1 addition & 0 deletions templates/footer.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<script src="vendor/jquery/js/jquery-1.10.2.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/datatables/datatables.min.js"></script>
<script src="js/service-desk.js"></script>

{literal}
<script type="text/javascript">
Expand Down

0 comments on commit c5b3bee

Please sign in to comment.