fix: Change login_form module methods to match AuthHandler interface

This commit is contained in:
ptrcnull 2021-10-05 13:38:36 +02:00
parent 5fa5217128
commit f3c719928f
2 changed files with 4 additions and 3 deletions

View file

@ -4,17 +4,18 @@ import (
"git.ddd.rip/ptrcnull/modweb"
"git.ddd.rip/ptrcnull/modweb/static"
"github.com/gofiber/fiber/v2"
"html/template"
)
type Module struct {
Handler func(user string, pass string) *modweb.User
}
func (m Module) LoginURL() string {
func (m Module) LoginURL() template.URL {
return "/login/"
}
func (m Module) RegisterURL() string {
func (m Module) RegisterURL() template.URL {
return ""
}