mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
fix sha512_crypt.encrypt and explicitely set rounds to 500000
This commit is contained in:
2
gam.py
2
gam.py
@@ -1048,7 +1048,7 @@ def doDelegates(users):
|
|||||||
|
|
||||||
def gen_sha512_hash(password):
|
def gen_sha512_hash(password):
|
||||||
from passlib.hash import sha512_crypt
|
from passlib.hash import sha512_crypt
|
||||||
return sha512_crypt(password)
|
return sha512_crypt.encrypt(password, rounds=500000)
|
||||||
|
|
||||||
def getDelegates(users):
|
def getDelegates(users):
|
||||||
emailsettings = getEmailSettingsObject()
|
emailsettings = getEmailSettingsObject()
|
||||||
|
|||||||
Reference in New Issue
Block a user