changeset 219:96b17384932a

frontend.views: bug fix for login form, all input is required
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sat, 07 May 2011 22:11:30 +0200
parents fd36d76dd0e3
children 62452154e3a0
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sat May 07 22:10:41 2011 +0200
+++ b/MoinMoin/apps/frontend/views.py	Sat May 07 22:11:30 2011 +0200
@@ -1024,8 +1024,8 @@
     """
     name = 'login'
 
-    username = String.using(label=L_('Name'), optional=True).validated_by(Present())
-    password = String.using(label=L_('Password'), optional=True).validated_by(Present())
+    username = String.using(label=L_('Name'), optional=False).validated_by(Present())
+    password = String.using(label=L_('Password'), optional=False).validated_by(Present())
     openid = String.using(label=L_('OpenID'), optional=True).validated_by(Present(), URLValidator())
 
     # the submit hidden field