useractions

package
v0.0.0-...-24c7f3d Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResetLifetime is the maximum time reset tokens are valid for
	ResetLifetime = time.Hour
)

Variables

This section is empty.

Functions

func HandleCreate

func HandleCreate(context router.Context) error

HandleCreate handles the POST of the create form for users

func HandleCreateShow

func HandleCreateShow(context router.Context) error

HandleCreateShow serves the create form via GET for users.

func HandleDestroy

func HandleDestroy(context router.Context) error

HandleDestroy responds to /users/n/destroy by deleting the user.

func HandleIndex

func HandleIndex(context router.Context) error

HandleIndex displays a list of users.

func HandleLogin

func HandleLogin(context router.Context) error

HandleLogin responds to POST /users/login by setting a cookie on the request with encrypted user data.

func HandleLoginShow

func HandleLoginShow(context router.Context) error

HandleLoginShow shows the page at /users/login

func HandleLogout

func HandleLogout(context router.Context) error

HandleLogout clears the current user's session /users/logout

func HandlePasswordReset

func HandlePasswordReset(context router.Context) error

HandlePasswordReset responds to POST /users/password?token=DEADFISH by logging the user in, removing the token and allowing them to set their password.

func HandlePasswordResetSend

func HandlePasswordResetSend(context router.Context) error

HandlePasswordResetSend responds to POST /users/password/reset by sending a password reset email.

func HandlePasswordResetSentShow

func HandlePasswordResetSentShow(context router.Context) error

HandlePasswordResetSentShow responds to GET /users/password/sent

func HandlePasswordResetShow

func HandlePasswordResetShow(context router.Context) error

HandlePasswordResetShow responds to GET /users/password/reset by showing the password reset page.

func HandleShow

func HandleShow(context router.Context) error

HandleShow displays a single user.

func HandleUpdate

func HandleUpdate(context router.Context) error

HandleUpdate handles the POST of the form to update a user

func HandleUpdateShow

func HandleUpdateShow(context router.Context) error

HandleUpdateShow renders the form to update a user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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