auth

package
Version: v2.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: MIT Imports: 4 Imported by: 5

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL