Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'develop'
  • Loading branch information
tdemin committed Sep 2, 2019
2 parents dd3fee2 + 2083cc1 commit b671c0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project_amber/helpers/__init__.py
Expand Up @@ -38,7 +38,8 @@ def middleware() -> RequestParams:
if not request.is_json and request.method in ["POST", "PUT", "PATCH"]:
raise BadRequest
params = RequestParams()
if not request.path in ["/api/login", "/api/signup"]:
if not request.path in ["/api/login", "/api/signup"] \
and request.method != "OPTIONS":
params.authenticated = True
return params

Expand Down

0 comments on commit b671c0e

Please sign in to comment.