authctl

package
v0.0.0-...-d78814b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2019 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package authctl implements the authentication controllers.

Routes

/login       Log in to a user account
/logout      Log out
/account     Account home page (to edit profile or reset password)
/age-verify  If the blog implements age gating

Related Models

users

Age Gating

If the blog marks itself as NSFW, visitors to the blog must verify their age to enter. The middleware that controls this is at `middleware/age-gate.go`. The controller is here at `controllers/authctl/gate-gate.go`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgeGate

func AgeGate(w http.ResponseWriter, r *http.Request)

AgeGate handles age verification for NSFW blogs.

func Register

func Register(r *mux.Router)

Register the initial setup routes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL