diff options
| author | Barry Warsaw | 2012-01-07 13:47:51 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-01-07 13:47:51 -0500 |
| commit | 7a1c7652519841522246278daa3cbc121ded133c (patch) | |
| tree | 6882f9182116c33c4bb09a18a72ac77ba519f316 /src/mailman/app/subscriptions.py | |
| parent | 7d8f1cab00e4bceeb567bc9825b01caf72164b5d (diff) | |
| parent | 0ff2f2e1aee0945b50e9c76f462cd376b6985818 (diff) | |
| download | mailman-7a1c7652519841522246278daa3cbc121ded133c.tar.gz mailman-7a1c7652519841522246278daa3cbc121ded133c.tar.zst mailman-7a1c7652519841522246278daa3cbc121ded133c.zip | |
- Bump copyright years.
- Refactor to use the flufl.password package.
- Adapt to the API for flufl.bounce 2.0.
- Add a `bin/mailman shell` alias for `bin/mailman withlist`.
Diffstat (limited to '')
| -rw-r--r-- | src/mailman/app/subscriptions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/app/subscriptions.py b/src/mailman/app/subscriptions.py index 9eba89d8b..668f97dbd 100644 --- a/src/mailman/app/subscriptions.py +++ b/src/mailman/app/subscriptions.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2011 by the Free Software Foundation, Inc. +# Copyright (C) 2009-2012 by the Free Software Foundation, Inc. # # This file is part of GNU Mailman. # @@ -26,6 +26,7 @@ __all__ = [ ] +from flufl.password import generate from operator import attrgetter from storm.expr import And, Or from uuid import UUID @@ -43,7 +44,6 @@ from mailman.interfaces.subscriptions import ( ISubscriptionService, MissingUserError) from mailman.interfaces.usermanager import IUserManager from mailman.model.member import Member -from mailman.utilities.passwords import make_user_friendly_password @@ -161,7 +161,7 @@ class SubscriptionService: # password to a system default. This will have to get reset since # it can't be retrieved. Note that none of these are used unless # the address is completely new to us. - password = make_user_friendly_password() + password = generate(int(config.passwords.password_length)) return add_member(mlist, subscriber, real_name, password, delivery_mode, system_preferences.preferred_language, role) |
