Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsUserLogin = func(ctx *context.Context) { user := ctx.Input.Session("user") if user == nil && ctx.Request.RequestURI != "/login" { ctx.Redirect(302, "/") } }
验证用户是否登陆
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.