summaryrefslogtreecommitdiffstats
path: root/src/frest/auth
diff options
context:
space:
mode:
authorSanto Cariotti <dcariotti24@gmail.com>2020-03-24 15:53:53 +0000
committerSanto Cariotti <dcariotti24@gmail.com>2020-03-27 20:08:05 +0000
commitee1ef8caba7ad63a8538b47d221bac3c4ad9309a (patch)
treea85eaca23404c556e8a3d01a3b26ba8d6e0f6db4 /src/frest/auth
parenta347c3cb31d1ca39dc89cecd427b700babddf0db (diff)
fix: authorization header instead of authentication
Diffstat (limited to 'src/frest/auth')
-rw-r--r--src/frest/auth/routes.py2
1 files changed, 1 insertions, 1 deletions
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: