作者 yangfu

权限验证、重置密码修改

@@ -33,8 +33,8 @@ func init() { @@ -33,8 +33,8 @@ func init() {
33 } 33 }
34 filters.SecureKeyMap["token"] = "x-mmm-accesstoken" 34 filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
35 //TODO:token验证改为 /v1 35 //TODO:token验证改为 /v1
36 - web.InsertFilterChain("/v1/*", middleware.CheckAccessToken)  
37 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors()) 36 web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
  37 + web.InsertFilterChain("/v1/*", middleware.CheckAccessToken)
38 web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger)) 38 web.InsertFilter("/*", web.BeforeRouter, filters.CreateRequstLogFilter(log.Logger))
39 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false)) 39 web.InsertFilter("/*", web.AfterExec, filters.CreateResponseLogFilter(log.Logger), web.WithReturnOnOutput(false))
40 web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler( 40 web.InsertFilter("/v1/app11/*", web.BeforeExec, filters.SecureHandler(