Commit 39f2816d authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

allow anonymous

parent 786f85c6
...@@ -26,7 +26,7 @@ func ParseJWT(secret, token string) (ok, expired bool, uid string) { ...@@ -26,7 +26,7 @@ func ParseJWT(secret, token string) (ok, expired bool, uid string) {
} }
if claims["is_anonymous"].(bool) { if claims["is_anonymous"].(bool) {
return // return
} }
uid = claims["sub"].(string) uid = claims["sub"].(string)
......
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