Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckLogin ¶
func CheckLogin(sessMgr *sessionstore.SessionManager, r *http.Request) (*sessionstore.Session, error)
CheckLogin checks if a valid sessions exists in an *http.Request
func DoesHashMatch ¶
DoesHashMatch checks whether a given password and hash match
func GenerateToken ¶
GenerateToken generates a token with a given length
func HashString ¶
HashString returns the bcrypt hash for a given string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.