diff options
| author | Barry Warsaw | 2007-07-14 21:23:28 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2007-07-14 21:23:28 -0400 |
| commit | 327865eaf118f40063366acad9c7d97487e010d6 (patch) | |
| tree | eda494bb7560b1427813ae7ec51a22e3d0444703 /Mailman/Commands/cmd_password.py | |
| parent | 288ae405b09baa443eb1b39422c48c315fbb2e5a (diff) | |
| download | mailman-327865eaf118f40063366acad9c7d97487e010d6.tar.gz mailman-327865eaf118f40063366acad9c7d97487e010d6.tar.zst mailman-327865eaf118f40063366acad9c7d97487e010d6.zip | |
Diffstat (limited to 'Mailman/Commands/cmd_password.py')
| -rw-r--r-- | Mailman/Commands/cmd_password.py | 6 |
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.')) |
