You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
413 B
19 lines
413 B
package viewmodel
|
|
|
|
import (
|
|
"git.aiterp.net/gisle/wrouter/auth"
|
|
)
|
|
|
|
// UserLogin is a view model for rendering the user login form
|
|
type UserLogin struct {
|
|
Base
|
|
Error string
|
|
UserName string
|
|
Password string
|
|
}
|
|
|
|
// Setup sets up the page model and the base, and should
|
|
// be run after the details have been filled in.
|
|
func (ul *UserLogin) Setup(user *auth.User) {
|
|
ul.setupBase(user, "Login", "/user/login")
|
|
}
|