mirror of
https://github.com/GAM-team/GAM.git
synced 2025-05-12 12:17:20 +00:00
Update __init__.py
This commit is contained in:
parent
b738d57433
commit
2685aa049d
@ -79,11 +79,7 @@ from gam import transport
|
||||
from gam import utils
|
||||
from gam.var import *
|
||||
|
||||
if platform.system() == 'Windows':
|
||||
# No crypt module on Win, use passlib
|
||||
from passlib.hash import sha512_crypt
|
||||
else:
|
||||
from crypt import crypt
|
||||
|
||||
if platform.system() == 'Linux':
|
||||
import distro
|
||||
@ -1423,9 +1419,7 @@ def addDelegates(users, i):
|
||||
|
||||
|
||||
def gen_sha512_hash(password):
|
||||
if platform.system() == 'Windows':
|
||||
return sha512_crypt.hash(password, rounds=5000)
|
||||
return crypt(password)
|
||||
|
||||
|
||||
def printShowDelegates(users, csvFormat):
|
||||
|
Loading…
x
Reference in New Issue
Block a user