mirror of https://github.com/veops/cmdb.git
auth: add user in flask.g when auth by jwt
This commit is contained in:
parent
f4879d20d6
commit
bc72e58886
|
@ -53,6 +53,7 @@ def _auth_with_token():
|
|||
return False
|
||||
|
||||
login_user(user)
|
||||
g.user = user
|
||||
return True
|
||||
except jwt.ExpiredSignatureError:
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue