Forward to dashboard when logged in
This commit is contained in:
		| @@ -96,7 +96,7 @@ func (h *Handler) verifyLogin(c *gin.Context) (budgeteer.Token, error) { | |||||||
|  |  | ||||||
| func (h *Handler) login(c *gin.Context) { | func (h *Handler) login(c *gin.Context) { | ||||||
| 	if _, err := h.verifyLogin(c); err == nil { | 	if _, err := h.verifyLogin(c); err == nil { | ||||||
| 		c.Redirect(http.StatusTemporaryRedirect, "/api/v1/hello") | 		c.Redirect(http.StatusTemporaryRedirect, "/dashboard") | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| @@ -105,7 +105,7 @@ func (h *Handler) login(c *gin.Context) { | |||||||
|  |  | ||||||
| func (h *Handler) register(c *gin.Context) { | func (h *Handler) register(c *gin.Context) { | ||||||
| 	if _, err := h.verifyLogin(c); err == nil { | 	if _, err := h.verifyLogin(c); err == nil { | ||||||
| 		c.Redirect(http.StatusTemporaryRedirect, "/api/v1/hello") | 		c.Redirect(http.StatusTemporaryRedirect, "/dashboard") | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user