authentication

package
v0.0.0-...-cdd45d8 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForgotPassword

func ForgotPassword(db *gorm.DB, mail chan *gomail.Message, box *packr.Box) func(w http.ResponseWriter, r *http.Request)

func Login

func Login(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)

Generate authentication tokens for users given a username and password

func Logout

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

Revoke authentication tokens

func ResetPassword

func ResetPassword(db *gorm.DB, mail chan *gomail.Message, box *packr.Box) func(w http.ResponseWriter, r *http.Request)

func VerifyEmail

func VerifyEmail(db *gorm.DB) func(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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