mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
During encryption password is converted to buffer (instead of
bytearray), and that is causing the issue in Python 2.
This was regress of commit-id: 37e2e1d24b
This commit is contained in:
parent
37e2e1d24b
commit
7d08e42bbe
@ -1049,7 +1049,10 @@ class ServerManager(object):
|
||||
|
||||
res = dict()
|
||||
res['sid'] = self.sid
|
||||
res['password'] = self.password.decode('utf-8')
|
||||
if hasattr(self.password, 'decode'):
|
||||
res['password'] = self.password.decode('utf-8')
|
||||
else:
|
||||
res['password'] = str(self.password)
|
||||
|
||||
connections = res['connections'] = dict()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user