changeset 3233:5e120e903ad5

avoid browsers filling in the user's password into first pw field
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 09 Mar 2008 23:10:28 +0100
parents 005153087ebc
children a739558ca3dc
files MoinMoin/userprefs/changepass.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/userprefs/changepass.py	Sun Mar 09 23:01:35 2008 +0100
+++ b/MoinMoin/userprefs/changepass.py	Sun Mar 09 23:10:28 2008 +0100
@@ -43,7 +43,7 @@
         if request.request_method != 'POST':
             return
 
-        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
@@ -74,7 +74,7 @@
                                           "enter a new password twice.")))
 
         self.make_row(_('Password'),
-                      [html.INPUT(type="password", size=36, name="password")])
+                      [html.INPUT(type="password", size=36, name="password1")])
         self.make_row(_('Password repeat'),
                       [html.INPUT(type="password", size=36, name="password2")])