Accept user in CreateToken
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user