Changeset 15302 for main/waeup.kofa/trunk/src
- Timestamp:
- 18 Jan 2019, 09:46:41 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/authentication.py
r15287 r15302 410 410 errors = [] 411 411 if len(pw) < 6: 412 errors.append(translate(_('Password must have at least 6 chars.'))) 412 errors.append(translate(_( 413 'Password must have at least 6 characters.'))) 413 414 if pw != pw_repeat: 414 415 errors.append(translate(_('Passwords do not match.'))) … … 424 425 (?=.*[a-z]) Ensure password has one lowercase letter. 425 426 .{8,} Ensure password is of length 8. 426 $ End anchor .427 $ End anchor 427 428 """ 428 429 # temporarily disabled430 # /kofa/trunk/src/waeup/kofa/doctests/pages.txt line 176 not met431 return self.validate_password(pw, pw_repeat)432 433 429 check_pw = re.compile(r"^(?=.*[A-Z])(?=.*[a-z])(?=.*[0-9]).{8,}$").match 434 430 errors = []
Note: See TracChangeset for help on using the changeset viewer.