web

package
v0.0.0-...-e4e8516 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlash

func AddFlash(session *sessions.Session, t string, msg string)

AddFlash adds a flash message to a page

Types

type Controller

type Controller struct {
	system.Controller
}

Controller blah

func (*Controller) DownloadInstaller

func (controller *Controller) DownloadInstaller(c web.C, r *http.Request) (string, int)

DownloadInstaller route

func (*Controller) ForgotPassword

func (controller *Controller) ForgotPassword(c web.C, r *http.Request) (string, int)

ForgotPassword route

func (*Controller) ForgotPasswordPost

func (controller *Controller) ForgotPasswordPost(c web.C, r *http.Request) (string, int)

ForgotPasswordPost route

func (*Controller) Help

func (controller *Controller) Help(c web.C, r *http.Request) (string, int)

Help shows the help page

func (*Controller) Index

func (controller *Controller) Index(c web.C, r *http.Request) (string, int)

Index route shows the home page

func (*Controller) Logout

func (controller *Controller) Logout(c web.C, r *http.Request) (string, int)

Logout logs the user out

func (*Controller) PasswordReset

func (controller *Controller) PasswordReset(c web.C, r *http.Request) (string, int)

PasswordReset is called after a user clicks the link from their password reset email It checks the token from the URL and if it's all legit, then it logs the user in and makes them reset their password

func (*Controller) Privacy

func (controller *Controller) Privacy(c web.C, r *http.Request) (string, int)

Privacy shows privacy policy

func (*Controller) Register

func (controller *Controller) Register(c web.C, r *http.Request) (string, int)

Register route

func (*Controller) RegisterPost

func (controller *Controller) RegisterPost(c web.C, r *http.Request) (string, int)

RegisterPost registers new user or shows Register route with appropriate messages set in session

func (*Controller) SignIn

func (controller *Controller) SignIn(c web.C, r *http.Request) (string, int)

SignIn is used for displaying the sign-in page

func (*Controller) SignInPost

func (controller *Controller) SignInPost(c web.C, r *http.Request) (string, int)

SignInPost is used to log the user in or set appropriate message in session if login was not succesful

func (*Controller) TermsAndConditions

func (controller *Controller) TermsAndConditions(c web.C, r *http.Request) (string, int)

TermsAndConditions shows the terms and conditions page

Jump to

Keyboard shortcuts

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