auth

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2016 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(w http.ResponseWriter, r *http.Request)

func Chkauth

func Chkauth(f http.HandlerFunc) http.HandlerFunc

func Crypt

func Crypt(password []byte) ([]byte, error)

func Logout

func Logout(w http.ResponseWriter, r *http.Request)

func Register

func Register(w http.ResponseWriter, r *http.Request)

Types

type RenderData

type RenderData struct {
	Title       string
	Headline    string
	Message     string
	Action      string
	Submit      string
	MenuEntries [][2]string
}

type User

type User struct {
	Username       string
	Password       string
	Approvalstatus string
	Adminstatus    string
}

Jump to

Keyboard shortcuts

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