summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_members.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/commands/cli_members.py
parentd1352a018ccc979303fee1d67dca8ee6a588ec69 (diff)
downloadmailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.tar.gz
mailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.tar.zst
mailman-ea48a9360f0c0e0d1974fdcdce6b31821818ee76.zip
Diffstat (limited to 'src/mailman/commands/cli_members.py')
-rw-r--r--src/mailman/commands/cli_members.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/commands/cli_members.py b/src/mailman/commands/cli_members.py
index 96469c0f1..268d65bdc 100644
--- a/src/mailman/commands/cli_members.py
+++ b/src/mailman/commands/cli_members.py
@@ -29,6 +29,7 @@ import sys
import codecs
from email.utils import formataddr, parseaddr
+from flufl.password import generate
from operator import attrgetter
from zope.component import getUtility
from zope.interface import implements
@@ -40,7 +41,6 @@ from mailman.interfaces.command import ICLISubCommand
from mailman.interfaces.listmanager import IListManager
from mailman.interfaces.member import (
AlreadySubscribedError, DeliveryMode, DeliveryStatus)
-from mailman.utilities.passwords import make_user_friendly_password
@@ -198,7 +198,7 @@ class Members:
real_name = real_name.decode(fp.encoding)
email = email.decode(fp.encoding)
# Give the user a default, user-friendly password.
- password = make_user_friendly_password()
+ password = generate(int(config.passwords.password_length))
try:
add_member(mlist, email, real_name, password,
DeliveryMode.regular,