BUGFIX: claims, use value, not field name

This commit is contained in:
Matthew Dillon 2015-04-30 16:17:58 -08:00
parent 03fbde5af3
commit f3672c9a0c

2
jwt.go
View file

@ -219,7 +219,7 @@ func (m *Middleware) GenerateToken() http.Handler {
} }
// Generate claims for user // Generate claims for user
claims, err := m.claims(m.identityField) claims, err := m.claims(b[m.identityField])
if err != nil { if err != nil {
return &jwtError{ return &jwtError{
status: http.StatusInternalServerError, status: http.StatusInternalServerError,