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"
"git.ddd.rip/ptrcnull/modweb/static" "git.ddd.rip/ptrcnull/modweb/static"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"html/template"
) )
type Module struct { type Module struct {
Handler func(user string, pass string) *modweb.User Handler func(user string, pass string) *modweb.User
} }
func (m Module) LoginURL() string { func (m Module) LoginURL() template.URL {
return "/login/" return "/login/"
} }
func (m Module) RegisterURL() string { func (m Module) RegisterURL() template.URL {
return "" return ""
} }

View file

@ -8,7 +8,7 @@
<div class="field"> <div class="field">
<label for="password" class="label">Password</label> <label for="password" class="label">Password</label>
<div class="control"> <div class="control">
<input type="password" name="password" class="input" placeholder="***** ***" required=""> <input type="password" name="password" class="input" placeholder="********" required="">
</div> </div>
</div> </div>
<div class="control"> <div class="control">