hlfw.ca

webbing

ref: 7a634f81a9ae1100ef9f1c1d948a4a773c9e473c
dir: /newpassword.go/

View raw version
package pages

import (
	"github.com/olmaxmedical/plugins"
	"github.com/olmaxmedical/router"
	"golang.org/x/text/message"
)

func init() {
	b := &router.Page{
		Access: router.GuestAuth,
		CSS:    "",
		Path:   "newpassword",
		Data:   newPassword,
		Extra:  plugins.FormToken | plugins.FormErrors,
	}
	router.AddPage(b)
}

func newPassword(p *message.Printer) map[string]interface{} {
	return map[string]interface{}{
		"title":    p.Sprintf("Olmax Medical | Login"),
		"reset":    p.Sprint("Enter new password"),
		"password": p.Sprint("Enter password"),
		"reenter":  p.Sprint("Re-enter password"),
		"update":   p.Sprint("Update"),
	}
}