c1bb129b87
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`?
23 lines
570 B
Cheetah
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}}
|