Skip to content

Commit e6cce21

Browse files
committed
Make Chrome stop complaining about missing autocomplete
1 parent 4224d77 commit e6cce21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/templates/loginuserpass.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<form id="f" class="pure-form pure-form-aligned" action="{{ formURL }}" method="post" name="f" spellcheck="false">
4141
<div class="pure-control-group">
4242
<label for="username">{{ 'Username'|trans }}</label>
43-
<input id="username" {{ forceUsername ? 'disabled' }} placeholder="{{ username }}" type="text" name="username" class="edge"
43+
<input id="username" {{ forceUsername ? 'disabled autocomplete="off"' }} placeholder="{{ username }}" type="text" name="username" class="edge"
4444
{%- if not forceUsername %} tabindex="1" value="{{ username }}" autocomplete="username" {% endif %}
4545
{%- if not forceUsername and not username %} autofocus {% endif %} >
4646
{% if rememberUsernameEnabled and not forceUsername -%}

0 commit comments

Comments
 (0)