unexport confirm email handler

This commit is contained in:
tsmethurst 2021-10-18 14:53:20 +02:00
commit 91819eada2
2 changed files with 2 additions and 2 deletions

View file

@ -107,7 +107,7 @@ func (m *Module) Route(s router.Router) error {
s.AttachHandler(http.MethodGet, "/:user/statuses/:id", m.threadTemplateHandler)
// serve email confirmation page at /confirm_email?token=whatever
s.AttachHandler(http.MethodGet, confirmEmailPath, m.ConfirmEmailGETHandler)
s.AttachHandler(http.MethodGet, confirmEmailPath, m.confirmEmailGETHandler)
// 404 handler
s.AttachNoRouteHandler(m.NotFoundHandler)

View file

@ -25,7 +25,7 @@ import (
"github.com/sirupsen/logrus"
)
func (m *Module) ConfirmEmailGETHandler(c *gin.Context) {
func (m *Module) confirmEmailGETHandler(c *gin.Context) {
// if there's no token in the query, just serve the 404 web handler
token := c.Query(tokenParam)
if token == "" {