Skip to content

Commit

Permalink
add post for apitoken
Browse files Browse the repository at this point in the history
  • Loading branch information
LoRexxar committed Oct 12, 2021
1 parent dd3eedd commit 86edd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/index/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def api_token_required(function):

def wrapper(request, *args, **kwargs):

if "apitoken" in request.GET:
if "apitoken" in request.REQUEST:

if request.GET['apitoken'] == API_TOKEN:
if request.REQUEST['apitoken'] == API_TOKEN:
return function(request, *args, **kwargs)

return JsonResponse({"code": 401, "status": "error", "message": "Auth check error. token required."})
Expand Down

0 comments on commit 86edd3c

Please sign in to comment.