Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSession ¶
func CreateSession(w http.ResponseWriter, isOauth bool, OAuthRecheckInterval int)
CreateSession creates a new session - called after login with correct username / password If sessions parameter is nil, it will be loaded from config
func IsValidSession ¶
func IsValidSession(w http.ResponseWriter, r *http.Request, isOauth bool, OAuthRecheckInterval int) bool
IsValidSession checks if the user is submitting a valid session token If valid session is found, useSession will be called Returns true if authenticated, otherwise false
func LogoutSession ¶
func LogoutSession(w http.ResponseWriter, r *http.Request)
LogoutSession logs out user and deletes session
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.