Documentation ¶
Index ¶
- Variables
- func CheckAuthCookie(w http.ResponseWriter, r *http.Request)
- func ClearAuthCookie(w http.ResponseWriter, r *http.Request)
- func ControllerLogin(w http.ResponseWriter, r *http.Request)
- func ControllerLogout(w http.ResponseWriter, r *http.Request)
- func GetHMAC() []byte
- func GetPassword() string
- func SetAuthCookie(w http.ResponseWriter, r *http.Request)
- type OTPForm
Constants ¶
This section is empty.
Variables ¶
View Source
var HMACKey = GetHMAC() // or GenerateRandomKey()
Functions ¶
func CheckAuthCookie ¶
func CheckAuthCookie(w http.ResponseWriter, r *http.Request)
func ClearAuthCookie ¶
func ClearAuthCookie(w http.ResponseWriter, r *http.Request)
func ControllerLogin ¶
func ControllerLogin(w http.ResponseWriter, r *http.Request)
func ControllerLogout ¶
func ControllerLogout(w http.ResponseWriter, r *http.Request)
func GetPassword ¶
func GetPassword() string
func SetAuthCookie ¶
func SetAuthCookie(w http.ResponseWriter, r *http.Request)
Types ¶
Click to show internal directories.
Click to hide internal directories.