mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update mw.py
This commit is contained in:
+1
-1
@@ -433,7 +433,7 @@ def hasPwd(password):
|
||||
import bcrypt
|
||||
salt = bcrypt.gensalt()
|
||||
hpw = bcrypt.hashpw(password.encode('utf-8'), salt)
|
||||
return hpw.encode('utf-8')
|
||||
return hpw.decode('utf-8')
|
||||
|
||||
|
||||
def getFileMd5(filename):
|
||||
|
||||
Reference in New Issue
Block a user