changeset 1357:d5c7b21ff54a beta

fixes issue #198 password will require only 3 chars now for login form
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 04 Jun 2011 00:28:58 +0200
parents eec4defdf2b8
children 5ae5aa6b7bed
files rhodecode/model/forms.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/forms.py	Sat Jun 04 00:14:32 2011 +0200
+++ b/rhodecode/model/forms.py	Sat Jun 04 00:28:58 2011 +0200
@@ -455,17 +455,17 @@
                              min=1,
                              not_empty=True,
                              messages={
-                                       'empty':_('Please enter a login'),
-                                       'tooShort':_('Enter a value %(min)i characters long or more')}
+                                'empty':_('Please enter a login'),
+                                'tooShort':_('Enter a value %(min)i characters long or more')}
                             )
 
     password = UnicodeString(
                             strip=True,
-                            min=6,
+                            min=3,
                             not_empty=True,
                             messages={
-                                      'empty':_('Please enter a password'),
-                                      'tooShort':_('Enter %(min)i characters or more')}
+                                'empty':_('Please enter a password'),
+                                'tooShort':_('Enter %(min)i characters or more')}
                                 )