Merge pull request #10524 from OlegZharkov/proper-error

informative error message on /api/authenticate/baseauth
This commit is contained in:
Dannon
2021-01-13 12:57:38 -05:00
committed by GitHub
@@ -94,7 +94,10 @@ class AuthenticationController(BaseAPIController):
:raises: HTTPBadRequest
"""
split = encoded_str.strip().split(' ')
try:
split = encoded_str.strip().split(' ')
except AttributeError:
raise exceptions.RequestParameterInvalidException('Authentication is missing')
# If split is only one element, try to decode the email and password
# directly.