auth

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package auth implements password based user logins.

Index

Constants

View Source
const (
	// PageLogin is for identifying the login page for parsing & validation
	PageLogin = "login"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	*authboss.Authboss
}

Auth module

func (*Auth) Init

func (a *Auth) Init(ab *authboss.Authboss) (err error)

Init module

func (*Auth) LoginGet

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

LoginGet simply displays the login form

func (*Auth) LoginPost

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

LoginPost attempts to validate the credentials passed in to log in a user.

Jump to

Keyboard shortcuts

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