summaryrefslogtreecommitdiff
path: root/Mailman/Commands/cmd_password.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-21 16:19:54 -0400
committerBarry Warsaw2007-07-21 16:19:54 -0400
commit276009e248e64cf0c60989c93b2f3d6b9713c199 (patch)
tree7b630f12e1b0feaa8cc9f77e9d11188629e2b8d2 /Mailman/Commands/cmd_password.py
parent61d8ec7117463493b946c0f82872fe716d7bc901 (diff)
parenta55d4aa436f34e5d3f1e0e06b372b57de323aa61 (diff)
downloadmailman-276009e248e64cf0c60989c93b2f3d6b9713c199.tar.gz
mailman-276009e248e64cf0c60989c93b2f3d6b9713c199.tar.zst
mailman-276009e248e64cf0c60989c93b2f3d6b9713c199.zip
Diffstat (limited to 'Mailman/Commands/cmd_password.py')
-rw-r--r--Mailman/Commands/cmd_password.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Commands/cmd_password.py b/Mailman/Commands/cmd_password.py
index 278dad3c0..ff9ae8762 100644
--- a/Mailman/Commands/cmd_password.py
+++ b/Mailman/Commands/cmd_password.py
@@ -28,7 +28,7 @@
from email.Utils import parseaddr
-from Mailman import mm_cfg
+from Mailman.configuration import config
from Mailman.i18n import _
STOP = 1
@@ -77,7 +77,7 @@ def process(res, args):
newpasswd = args[1]
realname, address = parseaddr(res.msg['from'])
if mlist.isMember(address):
- if mlist.Authenticate((mm_cfg.AuthUser, mm_cfg.AuthListAdmin),
+ if mlist.Authenticate((config.AuthUser, config.AuthListAdmin),
oldpasswd, address):
mlist.setMemberPassword(address, newpasswd)
res.results.append(_('Password successfully changed.'))
@@ -103,7 +103,7 @@ current password, then try again."""))
address = args[2][8:]
res.returnaddr = address
if mlist.isMember(address):
- if mlist.Authenticate((mm_cfg.AuthUser, mm_cfg.AuthListAdmin),
+ if mlist.Authenticate((config.AuthUser, config.AuthListAdmin),
oldpasswd, address):
mlist.setMemberPassword(address, newpasswd)
res.results.append(_('Password successfully changed.'))