Documentation ¶
Overview ¶
Package auth implements the authentication in use for gophish.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmptyPassword = errors.New("No password provided")
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("Password cannot be blank")
ErrPasswordMismatch is thrown when a user provides a blank password to the register or change password functions
Functions ¶
func ChangePassword ¶
ChangePassword verifies the current password provided in the request and, if it's valid, changes the password for the authenticated user.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.