learn-go/snippetbox/ui/html/pages/login.tmpl
tamsin johnson c1bb129b87 lets-go:11.0 user login without peeking
just the bones here, not authenticating at all yet. going ahead with the chapter
now because i'm curious about the preferred way to authenticate; are we going to
put this on `UserModel` or some other `internal` locale, or just in `helpers.go`?
2024-02-07 11:22:47 -08:00

23 lines
570 B
Cheetah

{{define "title"}}User Login{{end}}
{{define "main"}}
<form action='/user/login' method='POST'>
<div>
<label>Username:</label>
{{with .Form.FieldErrors.username}}
<label class='error'>{{.}}</label>
{{end}}
<input type='text' name='username' value='{{.Form.Username}}'>
</div>
<div>
<label>Password:</label>
{{with .Form.FieldErrors.password}}
<label class='error'>{{.}}</label>
{{end}}
<input type='text' name='password' value='{{.Form.Password}}'>
</div>
<div>
<input type='submit' value='Login'>
</div>
{{end}}