Update mw.py

This commit is contained in:
dami
2025-09-11 16:41:09 +08:00
parent 554b4047b9
commit eca95c36dd
+2 -1
View File
@@ -432,7 +432,8 @@ def hasPwd(password):
# return crypt.crypt(password, password)
import bcrypt
salt = bcrypt.gensalt()
return str(bcrypt.hashpw(password.encode('utf-8'), salt))
hpw = bcrypt.hashpw(password.encode('utf-8'), salt)
return hpw.encode('utf-8')
def getFileMd5(filename):