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