summaryrefslogtreecommitdiff
path: root/src/mailman/rules/approved.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-04 23:43:40 -0600
committerBarry Warsaw2012-04-04 23:43:40 -0600
commit180d4968c277b533507db04bb9d363c6a65a2af5 (patch)
tree4dc689635e93688a2f9a5e8e2eb3566167193006 /src/mailman/rules/approved.py
parent53633149a247243efe830d7175906dc204423f41 (diff)
downloadmailman-180d4968c277b533507db04bb9d363c6a65a2af5.tar.gz
mailman-180d4968c277b533507db04bb9d363c6a65a2af5.tar.zst
mailman-180d4968c277b533507db04bb9d363c6a65a2af5.zip
Diffstat (limited to 'src/mailman/rules/approved.py')
-rw-r--r--src/mailman/rules/approved.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mailman/rules/approved.py b/src/mailman/rules/approved.py
index 927a96ee5..3e2b7bc83 100644
--- a/src/mailman/rules/approved.py
+++ b/src/mailman/rules/approved.py
@@ -17,7 +17,7 @@
"""Look for moderator pre-approval."""
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, print_function, unicode_literals
__metaclass__ = type
__all__ = [
@@ -26,7 +26,9 @@ __all__ = [
import re
+
from email.iterators import typed_subpart_iterator
+from flufl.password import verify
from zope.interface import implements
from mailman.core.i18n import _
@@ -117,7 +119,8 @@ class Approved:
else:
for header in HEADERS:
del msg[header]
- return password is not missing and password == mlist.moderator_password
+ return (password is not missing and
+ verify(mlist.moderator_password, password))