Update index.py

This commit is contained in:
Mr Chen
2023-12-30 03:31:39 +08:00
parent 53fdaed5c3
commit fb31e3ca15
+4 -3
View File
@@ -239,10 +239,11 @@ def start():
pma_path = getServerDir() + '/pma.pass'
if not os.path.exists(pma_path):
username = mw.getRandomString(10)
pass_cmd = username + ':' + mw.hasPwd(username)
username = mw.getRandomString(8)
password = mw.getRandomString(10)
pass_cmd = username + ':' + mw.hasPwd(password)
setCfg('username', username)
setCfg('password', username)
setCfg('password', password)
mw.writeFile(pma_path, pass_cmd)
tmp = getServerDir() + "/" + getCfg()["path"] + '/tmp'