Commit 09f5da3d authored by Tristan Cavelier's avatar Tristan Cavelier

Remove username field server side autofill on login forms

<input login `request.get("__ac")` > removed

When the login form is rendered, the login field is not already filled.
We assume that the "__ac" cookie is deleted, so no need to generate the
login name server side. It also avoids to use old "__ac" cookies.
Browsers are already able to autocomplete them just by clicking on the field.
parent db017786
......@@ -51,7 +51,7 @@
<table>\n
<tr>\n
<td class="article"><span tal:replace="python: here.Base_translateString(\'Username\')"/>:</td>\n
<td><input name="__ac_name" size="10" type="text" tal:attributes="value python: request.get(\'__ac_name\') or \'\'"/></td>\n
<td><input name="__ac_name" size="10" type="text" /></td>\n
</tr>\n
<tr>\n
<td class="article"><span tal:replace="python: here.Base_translateString(\'Password\')"/>:</td>\n
......
288
\ No newline at end of file
289
......@@ -66,7 +66,7 @@
<fieldset>\n
<div class="field">\n
<label for="name" class="required" i18n:translate="" i18n:domain="ui">Name</label>\n
<div class="input"><input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" /></div>\n
<div class="input"><input type="text" name="__ac_name" id="name" /></div>\n
<p class="clear"></p>\n
</div>\n
<div class="field">\n
......
......@@ -89,7 +89,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
<fieldset class="left fielset_login">\n
<div class="field">\n
<label for="name" class="required" i18n:translate="" i18n:domain="ui">Name</label>\n
<div class="input"><input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'"/></div>\n
<div class="input"><input type="text" name="__ac_name" id="name" /></div>\n
</div>\n
<div class="field">\n
<label for="password" i18n:translate="" i18n:domain="ui">Password</label>\n
......
71
\ No newline at end of file
72
\ No newline at end of file
......@@ -66,7 +66,7 @@
<fieldset>\n
<div class="field">\n
<label for="name" class="required" i18n:translate="" i18n:domain="ui">Name</label>\n
<div class="input"><input type="text" name="__ac_name" id="name" tal:attributes="value python: request.get(\'__ac_name\') or \'\'" /></div>\n
<div class="input"><input type="text" name="__ac_name" id="name" /></div>\n
<p class="clear"></p>\n
</div>\n
<div class="field">\n
......
1117
\ No newline at end of file
1118
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment