mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix encoding issue for background process, it is regression of Master Password. Fixes #4303
This commit is contained in:
parent
dad0d690db
commit
aa95ff9f57
@ -449,9 +449,11 @@ WHERE db.oid = {0}""".format(did))
|
|||||||
|
|
||||||
def export_password_env(self, env):
|
def export_password_env(self, env):
|
||||||
if self.password:
|
if self.password:
|
||||||
password = decrypt(
|
crypt_key_present, crypt_key = get_crypt_key()
|
||||||
self.password, current_user.password
|
if not crypt_key_present:
|
||||||
).decode()
|
return False, crypt_key
|
||||||
|
|
||||||
|
password = decrypt(self.password, crypt_key).decode()
|
||||||
os.environ[str(env)] = password
|
os.environ[str(env)] = password
|
||||||
|
|
||||||
def create_ssh_tunnel(self, tunnel_password):
|
def create_ssh_tunnel(self, tunnel_password):
|
||||||
|
Loading…
Reference in New Issue
Block a user