password

package
v0.0.0-...-6c8972c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(h *common.Server, mw *mux.Router) (*mux.Router, error)

Types

type ChangePasswordForm

type ChangePasswordForm struct {
	CurrentPassword string
	NewPassword     string
	ConfirmPassword string
}

func (ChangePasswordForm) ValidatePassword

func (cp ChangePasswordForm) ValidatePassword(server *common.Server, r *http.Request, id string) error

type ChangePasswordTempData

type ChangePasswordTempData struct {
	CSRFField   template.HTML
	Form        ChangePasswordForm
	FormAction  string
	FormErrors  map[string]string
	FormMessage map[string]string
}

type Svc

type Svc struct {
	*common.Server
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL