Move init of StaticFS and rename some vars

This commit is contained in:
2022-02-15 12:37:23 +00:00
parent 74a53954de
commit 2f45c415e0
4 changed files with 20 additions and 17 deletions

View File

@@ -135,7 +135,7 @@ func (h *Handler) registerPost(c *gin.Context) {
c.AbortWithError(http.StatusInternalServerError, err)
}
t, err := h.TokenVerifier.CreateToken(&user)
token, err := h.TokenVerifier.CreateToken(&user)
if err != nil {
c.AbortWithError(http.StatusUnauthorized, err)
}
@@ -147,7 +147,7 @@ func (h *Handler) registerPost(c *gin.Context) {
return
}
c.JSON(http.StatusOK, LoginResponse{t, user, budgets})
c.JSON(http.StatusOK, LoginResponse{token, user, budgets})
}
func (h *Handler) UpdateLastLogin(userID uuid.UUID) {