Skip to content

Commit 8896a1f

Browse files
authored
Merge pull request #26 from thegushi/fix/create-py-typeerror
Fix TypeError in create.py: use hash_password() instead of sha_new()
2 parents fc46839 + 973313f commit 8896a1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mailman/Cgi/create.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from Mailman import i18n
3232
from Mailman.htmlformat import *
3333
from Mailman.Logging.Syslog import syslog
34-
from Mailman.Utils import sha_new
34+
from Mailman.Utils import sha_new, hash_password
3535

3636
# Set up i18n
3737
_ = i18n._
@@ -199,7 +199,7 @@ def sigterm_handler(signum, frame, mlist=mlist):
199199
# Install the emergency shutdown signal handler
200200
signal.signal(signal.SIGTERM, sigterm_handler)
201201

202-
pw = sha_new(password).hexdigest()
202+
pw = hash_password(password)
203203
# Guarantee that all newly created files have the proper permission.
204204
# proper group ownership should be assured by the autoconf script
205205
# enforcing that all directories have the group sticky bit set

0 commit comments

Comments
 (0)