mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Login Issue fixed, As encryption/decryption returns output in bytes datatype it fails to authenticate in python3.
This commit is contained in:
parent
209ee78b25
commit
64d74d0819
@ -98,6 +98,9 @@ class Connection(BaseConnection):
|
||||
return unauthorized(gettext("Unauthorized Request."))
|
||||
|
||||
password = decrypt(encpass, user.password)
|
||||
# password is in bytes, for python3 we need it in string
|
||||
if isinstance(password, bytes):
|
||||
password = password.decode()
|
||||
|
||||
try:
|
||||
import os
|
||||
|
Loading…
Reference in New Issue
Block a user