Login Issue fixed, As encryption/decryption returns output in bytes datatype it fails to authenticate in python3.
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