diff options
| author | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-01-05 00:54:19 -0500 |
| commit | 37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6 (patch) | |
| tree | f2225cf1049360298cdaca89b6ca4458b6af3bcc /mailman/Utils.py | |
| parent | f6d998b93b0dd8978eadc9abc4c3964e3fe66bf7 (diff) | |
| download | mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.gz mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.tar.zst mailman-37c255b7b0c1b8ea10c8d24a44c8586de86ffcc6.zip | |
Diffstat (limited to 'mailman/Utils.py')
| -rw-r--r-- | mailman/Utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailman/Utils.py b/mailman/Utils.py index 56f186a17..31848d5c8 100644 --- a/mailman/Utils.py +++ b/mailman/Utils.py @@ -35,11 +35,11 @@ import email.Header import email.Iterators from email.Errors import HeaderParseError +from lazr.config import as_boolean from string import ascii_letters, digits, whitespace, Template import mailman.templates -from mailman import Defaults from mailman import passwords from mailman.config import config from mailman.core import errors @@ -318,8 +318,8 @@ def Secure_MakeRandomPassword(length): def MakeRandomPassword(length=None): if length is None: - length = Defaults.MEMBER_PASSWORD_LENGTH - if Defaults.USER_FRIENDLY_PASSWORDS: + length = int(config.member_password_length) + if as_boolean(config.user_friendly_passwords): password = UserFriendly_MakeRandomPassword(length) else: password = Secure_MakeRandomPassword(length) |
