Update mw.py
This commit is contained in:
parent
eca95c36dd
commit
a5ee38d4fd
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue