Ensure that the correct value should be returned if an exception occurs while decoding the password. #5367

This commit is contained in:
Yogesh Mahajan 2022-09-30 15:08:03 +05:30 committed by GitHub
parent bedfad002d
commit 869b90121c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -39,4 +39,5 @@ Bug fixes
| `Issue #5327 <https://github.com/pgadmin-org/pgadmin4/issues/5327>`_ - Fixed an issue where user was unable to select privileges in Safari.
| `Issue #5338 <https://github.com/pgadmin-org/pgadmin4/issues/5338>`_ - Fixed an issue where the prompt is not visible when clicking on the 'save results to file' button on the large data.
| `Issue #5352 <https://github.com/pgadmin-org/pgadmin4/issues/5352>`_ - Fixed error occurring while LDAP authentication for a user with multiple email attributes.
| `Issue #5367 <https://github.com/pgadmin-org/pgadmin4/issues/5367>`_ - Ensure that the correct value should be returned if an exception occurs while decoding the password.
| `Issue #5368 <https://github.com/pgadmin-org/pgadmin4/issues/5368>`_ - Fixed the issue while downloading the file from the file manager.

View File

@ -244,7 +244,7 @@ class Connection(BaseConnection):
return True, \
_(
"Failed to decrypt the saved password.\nError: {0}"
).format(str(e))
).format(str(e)), password
return False, '', password
def connect(self, **kwargs):