Skip to content

Commit

Permalink
quickfix for string decoding basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
justb4 committed Nov 3, 2020
1 parent 5d5c529 commit 4b5fad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GeoHealthCheck/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def load_user_from_request(request):
authenticated = False
try:
username, password = base64.b64decode(
basic_auth_val.encode()).split(b':')
basic_auth_val).decode().split(':')

user = User.query.filter_by(username=username).first()
if user:
Expand Down

0 comments on commit 4b5fad4

Please sign in to comment.