Debug user_id claims
This commit is contained in:
parent
4baffb2dcc
commit
e22d0ce16e
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ func NewUserModifierCreate(r *http.Request) *UserModifierCreate {
|
|||
if r.Context().Value("user") != nil {
|
||||
claims = r.Context().Value("user").(*jwt.Token).Claims.(jwt.MapClaims)
|
||||
}
|
||||
|
||||
println("User id", claims["user_id"])
|
||||
return &UserModifierCreate{
|
||||
CreatorID: claims["user_id"].(string),
|
||||
CreatorRole: claims["role"].(string),
|
||||
|
|
Loading…
Reference in a new issue