account

package
v1.0.4-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleLogin

func HandleLogin(userCtrl *user.Controller, cookieName string) http.HandlerFunc

HandleLogin returns an http.HandlerFunc that authenticates the user and returns an authentication token on success.

func HandleLogout

func HandleLogout(userCtrl *user.Controller, cookieName string) http.HandlerFunc

HandleLogout returns a http.HandlerFunc that deletes the user token being used in the respective request and logs the user out.

func HandleRegister

func HandleRegister(userCtrl *user.Controller, sysCtrl *system.Controller, cookieName string) http.HandlerFunc

HandleRegister returns an http.HandlerFunc that processes an http.Request to register the named user account with the system.

Types

This section is empty.

Jump to

Keyboard shortcuts

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