Update mw.py

pull/816/head
dami 1 day ago
parent 554b4047b9
commit eca95c36dd
  1. 3
      web/core/mw.py

@ -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):

Loading…
Cancel
Save