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 d2f3589154
commit 82c921bb88

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