Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RequireLogin = context.Handlers{ ensureAuthSession, func(ctx context.Context) { if !IsAuthenticated(ctx) { next := ctx.Path() ctx.Redirect("/auth?next=" + next) } else { ctx.Next() } }, }
Functions ¶
func AuthHandlers ¶
func GetSession ¶
Returns the session for this request.
func IsAuthenticated ¶
func IsPasswordSet ¶
func IsPasswordValid ¶
func SetPassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.