Rename to AutoSigninFilter

This commit is contained in:
Yang Luo 2021-08-07 12:27:53 +08:00
parent 0a461bf19e
commit ea692c4e73
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ func main() {
beego.SetStaticPath("/swagger", "swagger")
// https://studygolang.com/articles/2303
beego.InsertFilter("*", beego.BeforeRouter, routers.StaticFilter)
beego.InsertFilter("*", beego.BeforeRouter, routers.AutoLoginFilter)
beego.InsertFilter("*", beego.BeforeRouter, routers.AutoSigninFilter)
beego.InsertFilter("*", beego.BeforeRouter, routers.AuthzFilter)
beego.InsertFilter("*", beego.BeforeRouter, routers.RecordMessage)

View File

@ -53,7 +53,7 @@ func returnRequest(ctx *context.Context, msg string) {
}
}
func AutoLoginFilter(ctx *context.Context) {
func AutoSigninFilter(ctx *context.Context) {
//if getSessionUser(ctx) != "" {
// return
//}