changeset 3252:67cd62f8493f

avoid browsers filling in the user's password into first pw field (2)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 14 Mar 2008 14:14:45 +0100
parents ecbde828b812
children 951eda3e45cd bf0e5f19be97
files MoinMoin/action/newaccount.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/newaccount.py	Fri Mar 14 13:10:19 2008 +0100
+++ b/MoinMoin/action/newaccount.py	Fri Mar 14 14:14:45 2008 +0100
@@ -44,7 +44,7 @@
         return _("This user name already belongs to somebody else.")
 
     # try to get the password and pw repeat
-    password = form.get('password', [''])[0]
+    password = form.get('password1', [''])[0]
     password2 = form.get('password2', [''])[0]
 
     # Check if password is given and matches with password repeat
@@ -114,7 +114,7 @@
     row.append(html.TD().append(html.STRONG().append(
                                   html.Text(_("Password")))))
     row.append(html.TD().append(html.INPUT(type="password", size="36",
-                                           name="password")))
+                                           name="password1")))
 
     row = html.TR()
     tbl.append(row)