diff options
author | Mark Sapiro <mark@msapiro.net> | 2021-11-12 15:23:52 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2021-11-12 15:23:52 -0800 |
commit | 9741161c4d404a1364c701813b77f81779d7f6a5 (patch) | |
tree | ca043396260744cafcb218d92b858e1d7f0dc9c2 /Mailman/CSRFcheck.py | |
parent | d9e523199b4203dfeddfe2d8b03524ccf9fdf4a3 (diff) | |
download | mailman2-9741161c4d404a1364c701813b77f81779d7f6a5.tar.gz mailman2-9741161c4d404a1364c701813b77f81779d7f6a5.tar.xz mailman2-9741161c4d404a1364c701813b77f81779d7f6a5.zip |
Fix admindb for list with no mod password.
Diffstat (limited to 'Mailman/CSRFcheck.py')
-rw-r--r-- | Mailman/CSRFcheck.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/CSRFcheck.py b/Mailman/CSRFcheck.py index 24e3e11b..4505f9d4 100644 --- a/Mailman/CSRFcheck.py +++ b/Mailman/CSRFcheck.py @@ -45,7 +45,7 @@ def csrf_token(mlist, contexts, user=None): for context in contexts: key, secret = mlist.AuthContextInfo(context, user) - if key: + if key and secret: break else: return None # not authenticated |