mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Mirror fix
This commit is contained in:
		@@ -206,7 +206,7 @@ func runWeb(*cli.Context) {
 | 
			
		||||
		r.Post("/:org/teams/new", bindIgnErr(auth.CreateTeamForm{}), org.NewTeamPost)
 | 
			
		||||
		r.Get("/:org/teams/:team/edit", org.EditTeam)
 | 
			
		||||
 | 
			
		||||
		r.Get("/:org/team/:team",org.SingleTeam)
 | 
			
		||||
		r.Get("/:org/team/:team", org.SingleTeam)
 | 
			
		||||
 | 
			
		||||
		r.Get("/:org/settings", org.Settings)
 | 
			
		||||
		r.Post("/:org/settings", bindIgnErr(auth.OrgSettingForm{}), org.SettingsPost)
 | 
			
		||||
 
 | 
			
		||||
@@ -139,10 +139,6 @@ func (ctx *Context) Handle(status int, title string, err error) {
 | 
			
		||||
	ctx.HTML(status, base.TplName(fmt.Sprintf("status/%d", status)))
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (ctx *Context) Debug(msg string, args ...interface{}) {
 | 
			
		||||
	log.Debug(msg, args...)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (ctx *Context) GetCookie(name string) string {
 | 
			
		||||
	cookie, err := ctx.Req.Cookie(name)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
@@ -356,7 +352,7 @@ func InitContext() martini.Handler {
 | 
			
		||||
			ctx.Session.SessionRelease(res)
 | 
			
		||||
 | 
			
		||||
			if flash := ctx.Flash.Encode(); len(flash) > 0 {
 | 
			
		||||
				ctx.SetCookie("gogs_flash", ctx.Flash.Encode(), 0)
 | 
			
		||||
				ctx.SetCookie("gogs_flash", flash, 0)
 | 
			
		||||
			}
 | 
			
		||||
		})
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -341,6 +341,7 @@ func newSessionService() {
 | 
			
		||||
		log.Fatal("Init session system failed, provider: %s, %v",
 | 
			
		||||
			SessionProvider, err)
 | 
			
		||||
	}
 | 
			
		||||
	go SessionManager.GC()
 | 
			
		||||
 | 
			
		||||
	log.Info("Session Service Enabled")
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user