fix: Change login_form module methods to match AuthHandler interface
This commit is contained in:
parent
5fa5217128
commit
f3c719928f
2 changed files with 4 additions and 3 deletions
|
@ -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 ""
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<div class="field">
|
||||
<label for="password" class="label">Password</label>
|
||||
<div class="control">
|
||||
<input type="password" name="password" class="input" placeholder="***** ***" required="">
|
||||
<input type="password" name="password" class="input" placeholder="********" required="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control">
|
||||
|
|
Loading…
Reference in a new issue