Skip to content

Commit

Permalink
[RD-35945] Simplified is_authenticated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathew Seymour committed Aug 12, 2019
1 parent 71ba0d2 commit c4d7e24
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/e2etests/testsite/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,8 @@ def is_authenticated(authorized_username, authorized_password):
b64decode(cherrypy.request.headers["Authorization"].split("Basic ")[1]).split(":")
)

if authorized_username and this_username != authorized_username:
return False

if authorized_password and this_password != authorized_password:
return False

return True

if (this_username == authorized_username) and (this_password == authorized_password):
return True
return False


Expand Down

0 comments on commit c4d7e24

Please sign in to comment.