1
This commit is contained in:
@ -40,7 +40,7 @@ func Auth(r *ghttp.Request) {
|
||||
if err != nil {
|
||||
Exit(r, err)
|
||||
}
|
||||
r.SetCtxVar("userId", tokenOut.UserId)
|
||||
r.SetCtxVar("id", tokenOut.UserId)
|
||||
r.SetCtxVar("role", tokenOut.Role)
|
||||
r.SetCtxVar("jti", tokenOut.JTI)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user