Debug user_id claims

This commit is contained in:
Andrea Fazzi 2019-12-09 14:58:39 +01:00
parent 4baffb2dcc
commit e22d0ce16e

View file

@ -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),