mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	modules/midlleware: little auth code fix, #777
This commit is contained in:
		| @@ -54,7 +54,6 @@ func Toggle(options *ToggleOptions) macaron.Handler { | |||||||
| 				if strings.HasSuffix(ctx.Req.RequestURI, "watch") { | 				if strings.HasSuffix(ctx.Req.RequestURI, "watch") { | ||||||
| 					return | 					return | ||||||
| 				} | 				} | ||||||
| 				println(url.QueryEscape(setting.AppSubUrl + ctx.Req.RequestURI)) |  | ||||||
| 				ctx.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI), 0, setting.AppSubUrl) | 				ctx.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI), 0, setting.AppSubUrl) | ||||||
| 				ctx.Redirect(setting.AppSubUrl + "/user/login") | 				ctx.Redirect(setting.AppSubUrl + "/user/login") | ||||||
| 				return | 				return | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user