Skip to content

Commit

Permalink
added required attribute to username and password field
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed Mar 29, 2023
1 parent aa9f62c commit 49db98e
Showing 1 changed file with 2 additions and 2 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('') }}">
<input 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') }}">
<input id="password" name="_password" type="password" tabindex="20" class="form-control" placeholder="{{ 'Password'|trans({}, 'TablerBundle') }}" required="required">
</div>
</div>
{% block remember_me %}
Expand Down

0 comments on commit 49db98e

Please sign in to comment.