mirror of
https://github.com/offen/website.git
synced 2024-11-25 10:10:28 +01:00
clean up response handling in vault
This commit is contained in:
parent
a0c7b3582d
commit
35bc386087
@ -83,6 +83,9 @@ def post_login():
|
|||||||
@json_error
|
@json_error
|
||||||
def get_login():
|
def get_login():
|
||||||
auth_cookie = request.cookies.get(COOKIE_KEY)
|
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"]
|
public_keys = app.config["JWT_PUBLIC_KEYS"]
|
||||||
|
|
||||||
token = None
|
token = None
|
||||||
|
Loading…
Reference in New Issue
Block a user