Remove unused HTML endpoints

This commit is contained in:
2022-01-26 20:22:39 +00:00
parent 1aa6d8d58f
commit 0ad97ce4ff
5 changed files with 1 additions and 109 deletions

View File

@ -45,24 +45,6 @@ func (h *Handler) verifyLoginWithRedirect(c *gin.Context) {
c.Next()
}
func (h *Handler) login(c *gin.Context) {
if _, err := h.verifyLogin(c); err == nil {
c.Redirect(http.StatusTemporaryRedirect, "/dashboard")
return
}
c.HTML(http.StatusOK, "login.html", nil)
}
func (h *Handler) register(c *gin.Context) {
if _, err := h.verifyLogin(c); err == nil {
c.Redirect(http.StatusTemporaryRedirect, "/dashboard")
return
}
c.HTML(http.StatusOK, "register.html", nil)
}
type loginInformation struct {
Password string `json:"password"`
User string `json:"user"`