auth

package
v0.0.0-...-0c0f7dc Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadHTPasswd

func LoadHTPasswd(fromFile string) error

func MD5Crypt

func MD5Crypt(password, salt, magic []byte) []byte

MD5 password crypt implementation

func NewFennelAuthentication

func NewFennelAuthentication() negroni.HandlerFunc

func ValidateCourier

func ValidateCourier(uid string, pwd string) (error, string)

func ValidateDB

func ValidateDB(uid string, pwd string) (error, string)

func ValidateUser

func ValidateUser(uid string, pwd string) (error, string)

func ValidateUserHTPasswd

func ValidateUserHTPasswd(uid string, pwd string) (error, string)

Types

type MD5Entry

type MD5Entry struct {
	Magic, Salt, Hash []byte
}

func NewMD5Entry

func NewMD5Entry(e string) *MD5Entry

Jump to

Keyboard shortcuts

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