mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
be conservative with password hashing to prevent timeouts
This commit is contained in:
2
gam.py
2
gam.py
@@ -981,7 +981,7 @@ def doDelegates(users):
|
|||||||
|
|
||||||
def gen_sha512_hash(password):
|
def gen_sha512_hash(password):
|
||||||
from passlib.handlers.sha2_crypt import sha512_crypt
|
from passlib.handlers.sha2_crypt import sha512_crypt
|
||||||
return sha512_crypt.encrypt(password, rounds=500000)
|
return sha512_crypt.encrypt(password, rounds=5000)
|
||||||
|
|
||||||
def getDelegates(users):
|
def getDelegates(users):
|
||||||
emailsettings = getEmailSettingsObject()
|
emailsettings = getEmailSettingsObject()
|
||||||
|
|||||||
Reference in New Issue
Block a user