Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FilterUser = func(ctx *context.Context) { _, ok := ctx.Input.Session(sessionName).(int) if !ok && ctx.Input.Uri() != "/login" && ctx.Input.Uri() != "/register" { ctx.Redirect(302, "/login") } }
customize filters for fine grain authorization
Functions ¶
func VerifyPassword ¶
Types ¶
type LoginController ¶
type LoginController struct {
beego.Controller
}
func (*LoginController) AppView ¶
func (this *LoginController) AppView()
func (*LoginController) Login ¶
func (this *LoginController) Login()
func (*LoginController) LoginView ¶
func (this *LoginController) LoginView()
func (*LoginController) Logout ¶
func (this *LoginController) Logout()
func (*LoginController) Register ¶
func (this *LoginController) Register()
func (*LoginController) RegisterView ¶
func (this *LoginController) RegisterView()
type MainController ¶
type MainController struct {
beego.Controller
}
func (*MainController) Get ¶
func (c *MainController) Get()
Click to show internal directories.
Click to hide internal directories.