auth: add user in flask.g when auth by jwt

This commit is contained in:
penzai
2020-02-16 18:02:24 +08:00
parent f4879d20d6
commit bc72e58886

View File

@@ -53,6 +53,7 @@ def _auth_with_token():
return False
login_user(user)
g.user = user
return True
except jwt.ExpiredSignatureError:
return False