Show More
@@ -551,7 +551,7 b' class LoginForm(formencode.Schema):' | |||||
551 | ) |
|
551 | ) | |
552 |
|
552 | |||
553 | password = UnicodeString( |
|
553 | password = UnicodeString( | |
554 |
strip= |
|
554 | strip=False, | |
555 | min=3, |
|
555 | min=3, | |
556 | not_empty=True, |
|
556 | not_empty=True, | |
557 | messages={ |
|
557 | messages={ | |
@@ -571,13 +571,13 b' def UserForm(edit=False, old_data={}):' | |||||
571 | username = All(UnicodeString(strip=True, min=1, not_empty=True), |
|
571 | username = All(UnicodeString(strip=True, min=1, not_empty=True), | |
572 | ValidUsername(edit, old_data)) |
|
572 | ValidUsername(edit, old_data)) | |
573 | if edit: |
|
573 | if edit: | |
574 |
new_password = All(UnicodeString(strip= |
|
574 | new_password = All(UnicodeString(strip=False, min=6, not_empty=False)) | |
575 |
password_confirmation = All(UnicodeString(strip= |
|
575 | password_confirmation = All(UnicodeString(strip=False, min=6, | |
576 | not_empty=False)) |
|
576 | not_empty=False)) | |
577 | admin = StringBoolean(if_missing=False) |
|
577 | admin = StringBoolean(if_missing=False) | |
578 | else: |
|
578 | else: | |
579 |
password = All(UnicodeString(strip= |
|
579 | password = All(UnicodeString(strip=False, min=6, not_empty=True)) | |
580 |
password_confirmation = All(UnicodeString(strip= |
|
580 | password_confirmation = All(UnicodeString(strip=False, min=6, | |
581 | not_empty=False)) |
|
581 | not_empty=False)) | |
582 |
|
582 | |||
583 | active = StringBoolean(if_missing=False) |
|
583 | active = StringBoolean(if_missing=False) | |
@@ -632,8 +632,8 b' def RegisterForm(edit=False, old_data={}' | |||||
632 | filter_extra_fields = True |
|
632 | filter_extra_fields = True | |
633 | username = All(ValidUsername(edit, old_data), |
|
633 | username = All(ValidUsername(edit, old_data), | |
634 | UnicodeString(strip=True, min=1, not_empty=True)) |
|
634 | UnicodeString(strip=True, min=1, not_empty=True)) | |
635 |
password = All(UnicodeString(strip= |
|
635 | password = All(UnicodeString(strip=False, min=6, not_empty=True)) | |
636 |
password_confirmation = All(UnicodeString(strip= |
|
636 | password_confirmation = All(UnicodeString(strip=False, min=6, not_empty=True)) | |
637 | active = StringBoolean(if_missing=False) |
|
637 | active = StringBoolean(if_missing=False) | |
638 | name = UnicodeString(strip=True, min=1, not_empty=False) |
|
638 | name = UnicodeString(strip=True, min=1, not_empty=False) | |
639 | lastname = UnicodeString(strip=True, min=1, not_empty=False) |
|
639 | lastname = UnicodeString(strip=True, min=1, not_empty=False) |
General Comments 0
You need to be logged in to leave comments.
Login now