Disable the sucky chrome autofill

It used to force login into "embed" field and password into post password.

Disabling autocomplete (at form) didn't work. Recreating the fields either.
Trying to induce default values didn't as well. x-autocompletetype didn't.

What worked – creating two dummy fields:
  <input type='text'>
  <input type='password'>
...just before the real post password.
This commit is contained in:
czaks 2014-04-10 11:01:37 +02:00
parent 28033fe6f3
commit 15c0802c06

View File

@ -101,7 +101,7 @@
{{ antibot.html() }} {{ antibot.html() }}
</th> </th>
<td> <td>
<input type="text" name="embed" size="30" maxlength="120" autocomplete="off"> <input type="text" name="embed" value="" size="30" maxlength="120" autocomplete="off">
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -130,9 +130,14 @@
<th> <th>
{% trans %}Password{% endtrans %} {% trans %}Password{% endtrans %}
{{ antibot.html() }} {{ antibot.html() }}
<!-- Chrome, you suck so hard with your autofill mechanism -->
<!-- I tried N different tricks, this sucks most, but only this one -->
<!-- disables autofill successfully -->
<input type='text' style='display: none'>
<input type='password' style='display: none'>
</th> </th>
<td> <td>
<input type="password" name="password" size="12" maxlength="18" autocomplete="off"> <input type="password" name="password" value="" size="12" maxlength="18" autocomplete="off">
<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span> <span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
{{ antibot.html() }} {{ antibot.html() }}
</td> </td>