hlfw.ca

webbing

ref: 5a15ea3f33e8121abee116d8b23783386af475af
dir: /resetpassword.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:   "resetpassword",
		Data:   resetPassword,
		Extra:  plugins.FormErrors,
	}
	router.AddPage(b)
}

func resetPassword(p *message.Printer) map[string]interface{} {
	// TODO: Also add in the error messages here
	return map[string]interface{}{
		"title":     p.Sprintf("Olmax Medical | Login"),
		"reset":     p.Sprintf("Enter Email"),
		"resettext": p.Sprintf("We will send a reset code to the email provided"),
		"email":     p.Sprintf("Email:"),
		"sendreset": p.Sprintf("Reset"),
	}
}