Skip to content

Commit

Permalink
added missing autocomplete attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Oct 1, 2024
1 parent 0b0fe32 commit ab9f323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/security.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% block login_form_start %}{% endblock %}
<div class="mb-3">
<label for="username" class="form-label">{{ 'Username'|trans({}, 'TablerBundle') }}</label>
<input type="text" id="username" name="_username" tabindex="10" class="form-control" placeholder="{{ 'Username'|trans({}, 'TablerBundle') }}" value="{{ last_username|default('') }}" required="required">
<input autocomplete="username" type="text" id="username" name="_username" tabindex="10" class="form-control" placeholder="{{ 'Username'|trans({}, 'TablerBundle') }}" value="{{ last_username|default('') }}" required="required">
</div>
<div class="mb-3">
<label for="password" class="form-label">
Expand All @@ -51,7 +51,7 @@
{% endblock %}
</label>
<div class="input-group input-group-flat">
<input id="password" name="_password" type="password" tabindex="20" class="form-control" placeholder="{{ 'Password'|trans({}, 'TablerBundle') }}" required="required">
<input autocomplete="new-password" id="password" name="_password" type="password" tabindex="20" class="form-control" placeholder="{{ 'Password'|trans({}, 'TablerBundle') }}" required="required">
</div>
</div>
{% block remember_me %}
Expand Down
4 changes: 2 additions & 2 deletions templates/security/password-reset.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
{% block login_form %}
<form class="card-body security-password-reset" action="{{ path('tabler_password_reset_sent'|tabler_route) }}" method="post" autocomplete="off">
<div class="mb-3">
<label class="form-label">{{ 'Username or email address'|trans({}, 'TablerBundle') }}</label>
<input type="text" id="username" name="username" required="required" class="form-control" placeholder="{{ 'Username or email address'|trans({}, 'TablerBundle') }}">
<label for="username" class="form-label">{{ 'Username or email address'|trans({}, 'TablerBundle') }}</label>
<input autocomplete="username" type="text" id="username" name="username" required="required" class="form-control" placeholder="{{ 'Username or email address'|trans({}, 'TablerBundle') }}">
</div>
<div class="form-footer">
{% from '@Tabler/components/buttons.html.twig' import submit_button %}
Expand Down

0 comments on commit ab9f323

Please sign in to comment.