diff --git a/controllers/userController.go b/controllers/userController.go index fc07462..b037982 100644 --- a/controllers/userController.go +++ b/controllers/userController.go @@ -188,6 +188,7 @@ func (rc *UserController) RegisterHandler(c *gin.Context) { } c.HTML(http.StatusOK, "register.html", data) + return } tokenExists, err := repositories.Tokens.Exists(token)