mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
+1
-1
@@ -432,7 +432,7 @@ def hasPwd(password):
|
||||
# return crypt.crypt(password, password)
|
||||
import bcrypt
|
||||
salt = bcrypt.gensalt()
|
||||
return bcrypt.hashpw(password.encode('utf-8'), salt)
|
||||
return str(bcrypt.hashpw(password.encode('utf-8'), salt))
|
||||
|
||||
|
||||
def getFileMd5(filename):
|
||||
|
||||
Reference in New Issue
Block a user