pull/816/head
dami 1 day ago
parent b1e8b4eb11
commit 554b4047b9
  1. 1
      plugins/phpmyadmin/install.sh
  2. 2
      web/core/mw.py

@ -7,6 +7,7 @@ rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
# cd /www/server/mdserver-web/plugins/phpmyadmin && bash install.sh install 4.4.15
# cd /www/server/mdserver-web && python3 plugins/phpmyadmin/index.py start
if [ -f ${rootPath}/bin/activate ];then

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

Loading…
Cancel
Save