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