mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 00:39:25 +08:00
update
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user