summaryrefslogtreecommitdiff
path: root/src/mailman/commands/cli_members.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-01-07 13:47:51 -0500
committerBarry Warsaw2012-01-07 13:47:51 -0500
commit7a1c7652519841522246278daa3cbc121ded133c (patch)
tree6882f9182116c33c4bb09a18a72ac77ba519f316 /src/mailman/commands/cli_members.py
parent7d8f1cab00e4bceeb567bc9825b01caf72164b5d (diff)
parent0ff2f2e1aee0945b50e9c76f462cd376b6985818 (diff)
downloadmailman-7a1c7652519841522246278daa3cbc121ded133c.tar.gz
mailman-7a1c7652519841522246278daa3cbc121ded133c.tar.zst
mailman-7a1c7652519841522246278daa3cbc121ded133c.zip
Diffstat (limited to 'src/mailman/commands/cli_members.py')
-rw-r--r--src/mailman/commands/cli_members.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/commands/cli_members.py b/src/mailman/commands/cli_members.py
index 96469c0f1..f37fb6ecb 100644
--- a/src/mailman/commands/cli_members.py
+++ b/src/mailman/commands/cli_members.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.
#
@@ -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,