yirenyishi há 6 anos
ascendente
cometimento
d07a1d5a32
  1. 5
      filter/Security.go
  2. 2
      main.go

5
filter/Security.go

@ -1,15 +1,14 @@
package filter
import (
"github.com/astaxie/beego/logs"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego"
"github.com/astaxie/beego/logs"
)
var FilterAdmin = func(ctx *context.Context) {
url := ctx.Input.URL()
logs.Info(url)
beego.Informational(url)
//beego.Informational(url)
//if url != "/login"{
// ctx.Redirect(302, "/login")
//}

2
main.go

@ -4,8 +4,8 @@ import (
_ "beeblog/routers"
"github.com/astaxie/beego"
"beeblog/models"
"beeblog/filter"
"github.com/astaxie/beego/orm"
"beeblog/filter"
)
func init() {

Carregando…
Cancelar
Guardar