From 3787913a128c7fc1afb439bb03f3ac81aeafe0cc Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Wed, 2 Oct 2024 03:33:28 +0800 Subject: [PATCH] Update index.py --- plugins/pgadmin/index.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/pgadmin/index.py b/plugins/pgadmin/index.py index df1d6dcfa..eff0f51ff 100755 --- a/plugins/pgadmin/index.py +++ b/plugins/pgadmin/index.py @@ -64,6 +64,7 @@ def getPort(): return tmp.groups()[0].strip() + def getHomePage(): try: port = getPort() @@ -209,7 +210,7 @@ def initReplace(): pg_init_bash = getPluginDir()+'/pg_init.sh' pg_rand = mw.getRandomString(8) pg_username = "mw."+pg_rand+"@gmail.com" - setCfg('web_pg_password', pg_username) + setCfg('web_pg_username', pg_username) pg_password = mw.getRandomString(10) setCfg('web_pg_password', pg_password) t = mw.execShell("bash "+ pg_init_bash + " " + pg_username + " " + pg_password)