Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2023 License: MIT Imports: 3 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