2
0
mirror of https://github.com/offen/website.git synced 2024-11-25 02:10:26 +01:00

clean up response handling in vault

This commit is contained in:
Frederik Ring 2019-08-01 11:59:27 +02:00
parent a0c7b3582d
commit 35bc386087

View File

@ -83,6 +83,9 @@ def post_login():
@json_error
def get_login():
auth_cookie = request.cookies.get(COOKIE_KEY)
if not auth_cookie:
return jsonify({"error": "no auth cookie in request", "status": 401}), 401
public_keys = app.config["JWT_PUBLIC_KEYS"]
token = None