direct load sha512_crypt so pyinstaller is happy

This commit is contained in:
Jay Lee
2015-04-15 10:30:29 -04:00
parent 825f16ecc7
commit 95c8b7ab16

2
gam.py
View File

@@ -972,7 +972,7 @@ def doDelegates(users):
doDeleteAlias(alias_email=use_delegate_address)
def gen_sha512_hash(password):
from passlib.hash import sha512_crypt
from passlib.handlers.sha2_crypt import sha512_crypt
return sha512_crypt.encrypt(password, rounds=500000)
def getDelegates(users):