~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/rules/docs/approved.rst

  • Committer: Barry Warsaw
  • Date: 2012-06-28 03:03:04 UTC
  • mto: This revision was merged to the branch mainline in revision 7156.
  • Revision ID: barry@list.org-20120628030304-cjlh7q9tgwasxno2
Replace flufl.password with passlib, albeit with a wrapper.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
This password will not be stored in clear text, so it must be hashed using the
21
21
configured hash protocol.
22
22
 
23
 
    >>> from flufl.password import lookup, make_secret
24
 
    >>> scheme = lookup(config.passwords.password_scheme.upper())
25
 
    >>> mlist.moderator_password = make_secret('super secret', scheme)
 
23
    >>> from mailman.utilities.passwords import encrypt
 
24
    >>> mlist.moderator_password = encrypt('super secret')
26
25
 
27
26
The ``approved`` rule determines whether the message contains the proper
28
27
approval or not.