This commit is contained in:
dami
2025-09-11 16:38:30 +08:00
parent b1e8b4eb11
commit 554b4047b9
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -7,6 +7,7 @@ rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(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 # cd /www/server/mdserver-web && python3 plugins/phpmyadmin/index.py start
if [ -f ${rootPath}/bin/activate ];then if [ -f ${rootPath}/bin/activate ];then
+1 -1
View File
@@ -432,7 +432,7 @@ def hasPwd(password):
# return crypt.crypt(password, password) # return crypt.crypt(password, password)
import bcrypt import bcrypt
salt = bcrypt.gensalt() salt = bcrypt.gensalt()
return bcrypt.hashpw(password.encode('utf-8'), salt) return str(bcrypt.hashpw(password.encode('utf-8'), salt))
def getFileMd5(filename): def getFileMd5(filename):