password widget should use the same value as main field for the confirm, else if we don't notice that we got a validation error while no password modification has been done
--- a/web/formwidgets.py Wed Apr 08 13:16:24 2009 +0200
+++ b/web/formwidgets.py Wed Apr 08 13:17:32 2009 +0200
@@ -74,7 +74,7 @@
confirmname = '%s-confirm:%s' % tuple(name.rsplit(':', 1))
inputs = [tags.input(name=name, value=values[0], type=self.type, id=id, **attrs),
'<br/>',
- tags.input(name=confirmname, type=self.type, **attrs),
+ tags.input(name=confirmname, value=values[0], type=self.type, **attrs),
' ', tags.span(form.req._('confirm password'),
**{'class': 'emphasis'})]
return u'\n'.join(inputs)