summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-04-10 11:01:37 +0200
committerczaks <marcin@6irc.net>2014-04-10 11:44:38 +0200
commit15c0802c061ea8e49536d32ce5b3d55c641b39ca (patch)
tree42cd1ac4b43e0f618e3fc3ae721f872a49ba43d1 /templates/post_form.html
parent28033fe6f35558b017b52f2564e3a2149cdd0c51 (diff)
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.
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html9
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 450377d8..09c2d48f 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -101,7 +101,7 @@
{{ antibot.html() }}
</th>
<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>
</tr>
{% endif %}
@@ -130,9 +130,14 @@
<th>
{% trans %}Password{% endtrans %}
{{ 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>
<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>
{{ antibot.html() }}
</td>