summaryrefslogtreecommitdiff
path: root/src/mailman/app/subscriptions.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-01-01 14:13:46 -0500
committerBarry Warsaw2012-01-01 14:13:46 -0500
commitea48a9360f0c0e0d1974fdcdce6b31821818ee76 (patch)
treebc1b230b020d8954ccbafa57508f441b50c4f961 /src/mailman/app/subscriptions.py
parentd1352a018ccc979303fee1d67dca8ee6a588ec69 (diff)
downloadmailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.tar.gz
mailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.tar.zst
mailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.zip
Replace the password stuff with flufl.password.
Diffstat (limited to 'src/mailman/app/subscriptions.py')
-rw-r--r--src/mailman/app/subscriptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/subscriptions.py b/src/mailman/app/subscriptions.py
index 9eba89d8b..bb8642874 100644
--- a/src/mailman/app/subscriptions.py
+++ b/src/mailman/app/subscriptions.py
@@ -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)