mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 06:07:39 -05:00
Add an extra None check for password before encryption to avoid possible failure
This commit is contained in:
1 parent
53b9fe1c86
commit
e334b87b4c
1 file changed
+2
-1
@@ -1139,7 +1139,8 @@ class ServerNode(PGChildNodeView):
|
||||
password = None
|
||||
passfile = None
|
||||
tunnel_password = ''
|
||||
if 'password' in data and data["password"] != '':
|
||||
if 'password' in data and data["password"] != '' and \
|
||||
data["password"] is not None:
|
||||
# login with password
|
||||
have_password = True
|
||||
password = data['password']
|
||||
|
||||
Reference in new issue
Block a user