mailman  2.1.39
About: Mailman 2 - The GNU Mailing List Management System.
  Fossies Dox: mailman-2.1.39.tgz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Mailman.CSRFcheck Namespace Reference

Functions

def csrf_token (mlist, contexts, user=None)
 
def csrf_check (mlist, token, cgi_user=None)
 

Variables

dictionary keydict
 

Function Documentation

◆ csrf_check()

def Mailman.CSRFcheck.csrf_check (   mlist,
  token,
  cgi_user = None 
)

◆ csrf_token()

def Mailman.CSRFcheck.csrf_token (   mlist,
  contexts,
  user = None 
)
 create token by mailman cookie generation algorithm 

Definition at line 39 of file CSRFcheck.py.

References Mailman.Utils.sha_new, and Mailman.Utils.UnobscureEmail().

Referenced by Mailman.htmlformat.Form.Format(), and Mailman.HTMLFormatter.HTMLFormatter.FormatFormStart().

Variable Documentation

◆ keydict

dictionary Mailman.CSRFcheck.keydict
Initial value:
1= {
2 'user': mm_cfg.AuthUser,
3 'poster': mm_cfg.AuthListPoster,
4 'moderator': mm_cfg.AuthListModerator,
5 'admin': mm_cfg.AuthListAdmin,
6 'site': mm_cfg.AuthSiteAdmin,
7}

Definition at line 29 of file CSRFcheck.py.