diff options
author | Mark Sapiro <mark@msapiro.net> | 2020-01-09 17:00:40 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2020-01-09 17:00:40 -0800 |
commit | 300671a6c0181f9792cb6bdc9d03f9016d3d1327 (patch) | |
tree | df6af1a3727112ac3a1c37547df69c9120af8126 /Mailman/Cgi/subscribe.py | |
parent | cf47ad68d9cdb269f3c1ea3d57f8b484141bfad5 (diff) | |
download | mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.tar.gz mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.tar.xz mailman2-300671a6c0181f9792cb6bdc9d03f9016d3d1327.zip |
Implement REFUSE_SECOND_PENDING setting to prevent multiple pending subscribes.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Cgi/subscribe.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py index ce7940f9..795fc81b 100644 --- a/Mailman/Cgi/subscribe.py +++ b/Mailman/Cgi/subscribe.py @@ -291,6 +291,9 @@ your subscription.""") Your subscription request was deferred because %(x)s. Your request has been forwarded to the list moderator. You will receive email informing you of the moderator's decision when they get to your request.""") + except Errors.MMAlreadyPending: + # User already has a subscription pending + results = _('You already have a subscription pending confirmation') except Errors.MMAlreadyAMember: # Results string depends on whether we have private rosters or not if not privacy_results: |