The backend for the AiteStory website
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

  1. package viewmodel
  2. import (
  3. "git.aiterp.net/gisle/wrouter/auth"
  4. )
  5. // UserLogin is a view model for rendering the user login form
  6. type UserLogin struct {
  7. Base
  8. Error string
  9. UserName string
  10. Password string
  11. }
  12. // Setup sets up the page model and the base, and should
  13. // be run after the details have been filled in.
  14. func (ul *UserLogin) Setup(user *auth.User) {
  15. ul.setupBase(user, "Login", "/user/login")
  16. }