authn

package
v0.0.0-...-8fa2440 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package authn provides authentication functions.

Index

Constants

This section is empty.

Variables

View Source
var _, Log = xlog.New("web.auth")

Functions

func Auth_ChangeEmail_GET

func Auth_ChangeEmail_GET(rw http.ResponseWriter, req *http.Request)

func Auth_ChangeEmail_POST

func Auth_ChangeEmail_POST(rw http.ResponseWriter, req *http.Request)

func Auth_ChangePassword_GET

func Auth_ChangePassword_GET(rw http.ResponseWriter, req *http.Request)

func Auth_ChangePassword_POST

func Auth_ChangePassword_POST(rw http.ResponseWriter, req *http.Request)

func Auth_Login_GET

func Auth_Login_GET(rw http.ResponseWriter, req *http.Request)

func Auth_Login_POST

func Auth_Login_POST(rw http.ResponseWriter, req *http.Request)

func Auth_Logout_POST

func Auth_Logout_POST(rw http.ResponseWriter, req *http.Request)

func Auth_LostPW_GET

func Auth_LostPW_GET(rw http.ResponseWriter, req *http.Request)

func Auth_LostPW_POST

func Auth_LostPW_POST(rw http.ResponseWriter, req *http.Request)

func Auth_Register_GET

func Auth_Register_GET(rw http.ResponseWriter, req *http.Request)

func Auth_Register_POST

func Auth_Register_POST(rw http.ResponseWriter, req *http.Request)

func Auth_Verify_GET

func Auth_Verify_GET(rw http.ResponseWriter, req *http.Request)

func Register

func Register(router *mux.Router)

func ValidateUserEmailPassword

func ValidateUserEmailPassword(req *http.Request, email, password string) (int64, []byte, bool)

Types

type Backend

type Backend interface {
	GetDatabase() *pgx.ConnPool
	GetCAPTCHA() *captcha.Config
}

type GetBackendFunc

type GetBackendFunc func(req *http.Request) Backend
var GetBackend GetBackendFunc

Jump to

Keyboard shortcuts

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