From ee1ef8caba7ad63a8538b47d221bac3c4ad9309a Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 24 Mar 2020 16:53:53 +0100 Subject: fix: authorization header instead of authentication --- src/frest/auth/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frest/auth/routes.py') diff --git a/src/frest/auth/routes.py b/src/frest/auth/routes.py index c4dcfc9..66bd8f5 100644 --- a/src/frest/auth/routes.py +++ b/src/frest/auth/routes.py @@ -17,7 +17,7 @@ def login(): data = request.json - auth = request.headers.get("Authentication") + auth = request.headers.get("Authorization") if auth: t = Token.query.filter_by(string=auth).first() if not t: -- cgit v1.2.3-71-g8e6c