Commit 8d9d2b53 authored by chaonan's avatar chaonan

Update jwt_user.py

parent cf55dad1
Pipeline #298 failed with stages
......@@ -7,7 +7,7 @@ import json
def jwt_user(request):
"""从jwt中解析user_id"""
token = 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxOTA1OTAsImV4cCI6MTY2MDAxNjU0Mn0.hwa2euNSS5VKE90zmxuiq6heAlb-3Oh_a-pH4Jv6Fjg'
token = request.token
if not token:
return None
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment