useractions

package
v0.0.0-...-a11cca7 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmailMonthlyInsights

func EmailMonthlyInsights()

func HandleCreate

func HandleCreate(email string, password string) error

HandleCreate creates the user

func HandleDestroy

func HandleDestroy(w http.ResponseWriter, r *http.Request) error

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

func HandleIndex

func HandleIndex(w http.ResponseWriter, r *http.Request) error

HandleIndex displays a list of users.

func HandleLogin

func HandleLogin(w http.ResponseWriter, r *http.Request) error

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

func HandleLoginShow

func HandleLoginShow(w http.ResponseWriter, r *http.Request) error

HandleLoginShow shows the page at /users/login

func HandleLogout

func HandleLogout(w http.ResponseWriter, r *http.Request) error

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

func HandlePasswordChange

func HandlePasswordChange(w http.ResponseWriter, r *http.Request) error

HandlePasswordChange responds to gets the new password, validates it and updates it in the db

func HandlePasswordChangeShow

func HandlePasswordChangeShow(w http.ResponseWriter, r *http.Request) error

HandlePasswordResetChangeShow responds to GET /users/password/change

func HandleShow

func HandleShow(w http.ResponseWriter, r *http.Request) error

HandleShow displays a single user.

func HandleShowName

func HandleShowName(w http.ResponseWriter, r *http.Request) error

HandleShowName redirects a GET request of /u/username to the user show page

func HandleUpdate

func HandleUpdate(id int64, email string, password string) error

HandleUpdate updates the user

Types

This section is empty.

Jump to

Keyboard shortcuts

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