Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginHandler ¶
type LoginHandler struct { HIBP hibp.HIBPSettings // Set this to be longer than your session // duration. Session durations do not // change the last login date, which is // used for comparison. // It is set for every new session made, // so once refresh is enabled, it will // update the last login once refreshed. LockInactivityAfter map[string]time.Duration }
func (LoginHandler) ServeHTTP ¶
func (lh LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoginPageHandler ¶ added in v0.1.1
type LoginPageHandler struct { AppName string // Only allow users with an invite code to register DisablePublicRegistration bool Styling pages.LocksmithPageStyling EmailAsUsername bool OnboardingPath string }
func (LoginPageHandler) ServeHTTP ¶ added in v0.1.1
func (lr LoginPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type LoginPageMiddleware ¶ added in v0.7.0
This confirms that: - A Session ID exists, and if not generates one - A Login_XSRF is created to work with LoginHandler{}
func (LoginPageMiddleware) ServeHTTP ¶ added in v0.7.0
func (h LoginPageMiddleware) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.