Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 12, 2022
1 parent 3299b15 commit aacb392
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions omeroweb/webgateway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3398,9 +3398,8 @@ def post(self, request, api_version=None):
else:
error = settings.LOGIN_INCORRECT_CREDENTIALS_TEXT
elif "connector" in request.session and (
len(form.data) == 0 or (
"csrfmiddlewaretoken" in form.data and len(form.data) == 1
)
len(form.data) == 0
or ("csrfmiddlewaretoken" in form.data and len(form.data) == 1)
):
# If we appear to already be logged in and the form we've been
# provided is empty repeat the "logged in" behaviour so a user
Expand Down

0 comments on commit aacb392

Please sign in to comment.