auth

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx *context.Context, af models.AuthForm)

Auth shows auth form

func Logout

func Logout(ctx *context.Context)

Logout delete req cookies and session user_id

func MustAuthorized

func MustAuthorized(ctx *context.Context)

MustAuthorized if user authorized, and try open index page he will be redirected to dashboard

func RedirectAutorized

func RedirectAutorized(ctx *context.Context)

RedirectAutorized if user authorized, and try open index page he will be redirected to dashboard

func Reg

func Reg(ctx *context.Context, af models.AuthForm)

Reg shows registration form

Types

This section is empty.

Jump to

Keyboard shortcuts

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