Accept user in CreateToken

This commit is contained in:
jacob1123 committed 2016-12-20 13:43:15 +01:00
1 parent e955638510
commit b5114beacf
3 files changed
+8 -5

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ func (h *Handler) loginPost(c *gin.Context) {
return
}
t, err := h.TokenVerifier.CreateToken(user.Email, user.Name)
t, err := h.TokenVerifier.CreateToken(user)
if err != nil {
c.AbortWithStatus(http.StatusUnauthorized)
}