Show More
@@ -92,6 +92,7 b' def LoginForm():' | |||||
92 | password = v.UnicodeString( |
|
92 | password = v.UnicodeString( | |
93 | strip=False, |
|
93 | strip=False, | |
94 | min=3, |
|
94 | min=3, | |
|
95 | max=72, | |||
95 | not_empty=True, |
|
96 | not_empty=True, | |
96 | messages={ |
|
97 | messages={ | |
97 | 'empty': _(u'Please enter a password'), |
|
98 | 'empty': _(u'Please enter a password'), | |
@@ -113,21 +114,21 b' def UserForm(edit=False, available_langu' | |||||
113 | if edit: |
|
114 | if edit: | |
114 | new_password = All( |
|
115 | new_password = All( | |
115 | v.ValidPassword(), |
|
116 | v.ValidPassword(), | |
116 | v.UnicodeString(strip=False, min=6, not_empty=False) |
|
117 | v.UnicodeString(strip=False, min=6, max=72, not_empty=False) | |
117 | ) |
|
118 | ) | |
118 | password_confirmation = All( |
|
119 | password_confirmation = All( | |
119 | v.ValidPassword(), |
|
120 | v.ValidPassword(), | |
120 | v.UnicodeString(strip=False, min=6, not_empty=False), |
|
121 | v.UnicodeString(strip=False, min=6, max=72, not_empty=False), | |
121 | ) |
|
122 | ) | |
122 | admin = v.StringBoolean(if_missing=False) |
|
123 | admin = v.StringBoolean(if_missing=False) | |
123 | else: |
|
124 | else: | |
124 | password = All( |
|
125 | password = All( | |
125 | v.ValidPassword(), |
|
126 | v.ValidPassword(), | |
126 | v.UnicodeString(strip=False, min=6, not_empty=True) |
|
127 | v.UnicodeString(strip=False, min=6, max=72, not_empty=True) | |
127 | ) |
|
128 | ) | |
128 | password_confirmation = All( |
|
129 | password_confirmation = All( | |
129 | v.ValidPassword(), |
|
130 | v.ValidPassword(), | |
130 | v.UnicodeString(strip=False, min=6, not_empty=False) |
|
131 | v.UnicodeString(strip=False, min=6, max=72, not_empty=False) | |
131 | ) |
|
132 | ) | |
132 |
|
133 | |||
133 | password_change = v.StringBoolean(if_missing=False) |
|
134 | password_change = v.StringBoolean(if_missing=False) | |
@@ -209,11 +210,11 b' def RegisterForm(edit=False, old_data={}' | |||||
209 | ) |
|
210 | ) | |
210 | password = All( |
|
211 | password = All( | |
211 | v.ValidPassword(), |
|
212 | v.ValidPassword(), | |
212 | v.UnicodeString(strip=False, min=6, not_empty=True) |
|
213 | v.UnicodeString(strip=False, min=6, max=72, not_empty=True) | |
213 | ) |
|
214 | ) | |
214 | password_confirmation = All( |
|
215 | password_confirmation = All( | |
215 | v.ValidPassword(), |
|
216 | v.ValidPassword(), | |
216 | v.UnicodeString(strip=False, min=6, not_empty=True) |
|
217 | v.UnicodeString(strip=False, min=6, max=72, not_empty=True) | |
217 | ) |
|
218 | ) | |
218 | active = v.StringBoolean(if_missing=False) |
|
219 | active = v.StringBoolean(if_missing=False) | |
219 | firstname = v.UnicodeString(strip=True, min=1, not_empty=False) |
|
220 | firstname = v.UnicodeString(strip=True, min=1, not_empty=False) |
General Comments 0
You need to be logged in to leave comments.
Login now