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