summaryrefslogtreecommitdiff
path: root/src/mailman/mta
diff options
context:
space:
mode:
authorBarry Warsaw2011-04-08 22:02:49 -0400
committerBarry Warsaw2011-04-08 22:02:49 -0400
commit25b407e24fe21dc46a4f9efa77734d55e0ed4bdd (patch)
treed129f8727bac75263c08d84b5138bef8f693ffef /src/mailman/mta
parentc73acb993acfc08f542b886eb426d6156a6a0a13 (diff)
downloadmailman-25b407e24fe21dc46a4f9efa77734d55e0ed4bdd.tar.gz
mailman-25b407e24fe21dc46a4f9efa77734d55e0ed4bdd.tar.zst
mailman-25b407e24fe21dc46a4f9efa77734d55e0ed4bdd.zip
encrypt_password(): New convenience function for ensuring that a password is
both encrypted according to a scheme, and a bytes object. add_member(): Use encrypt_password(). cli_members: Give the user a default, user-friendly password. Of course, this will be encrypted so it can't be retrieved, but it can be reset. Passwords are stored as bytes objects, not unicode now. ConfigLayer: Set the default test password scheme to cleartext. General test repair.
Diffstat (limited to 'src/mailman/mta')
-rw-r--r--src/mailman/mta/docs/decorating.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/mta/docs/decorating.txt b/src/mailman/mta/docs/decorating.txt
index 4edac481f..0bc9649c8 100644
--- a/src/mailman/mta/docs/decorating.txt
+++ b/src/mailman/mta/docs/decorating.txt
@@ -68,17 +68,17 @@ list.
>>> user_manager = getUtility(IUserManager)
>>> anne = user_manager.create_user('aperson@example.com', 'Anne Person')
- >>> anne.password = 'AAA'
+ >>> anne.password = b'AAA'
>>> list(anne.addresses)[0].subscribe(mlist, MemberRole.member)
<Member: Anne Person <aperson@example.com> ...
>>> bart = user_manager.create_user('bperson@example.com', 'Bart Person')
- >>> bart.password = 'BBB'
+ >>> bart.password = b'BBB'
>>> list(bart.addresses)[0].subscribe(mlist, MemberRole.member)
<Member: Bart Person <bperson@example.com> ...
>>> cris = user_manager.create_user('cperson@example.com', 'Cris Person')
- >>> cris.password = 'CCC'
+ >>> cris.password = b'CCC'
>>> list(cris.addresses)[0].subscribe(mlist, MemberRole.member)
<Member: Cris Person <cperson@example.com> ...