Documentation ¶
Overview ¶
Package auth implements the authentication in use for gophish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyPassword = errors.New("Password cannot be blank")
ErrEmptyPassword is thrown when a user provides a blank password to the register or change password functions
View Source
var ErrInvalidPassword = errors.New("Invalid Password")
ErrInvalidPassword is thrown when a user provides an incorrect password.
View Source
var ErrPasswordMismatch = errors.New("Passwords must match")
ErrPasswordMismatch is thrown when a user provides passwords that do not match
View Source
var ErrUsernameTaken = errors.New("Username already taken")
ErrUsernameTaken is thrown when a user attempts to register a username that is taken.
View Source
var Store = sessions.NewCookieStore( []byte(securecookie.GenerateRandomKey(64)), []byte(securecookie.GenerateRandomKey(32)))
Store contains the session information for the request
Functions ¶
func ChangePassword ¶
func GenerateSecureKey ¶
func GenerateSecureKey() string
GenerateSecureKey creates a secure key to use as an API key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.