mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	#2748 fix redirect loop with auto-signin
This commit is contained in:
		| @@ -113,7 +113,8 @@ func Toggle(options *ToggleOptions) macaron.Handler { | ||||
| 		if !options.SignOutRequire && !ctx.IsSigned && !auth.IsAPIPath(ctx.Req.URL.Path) && | ||||
| 			len(ctx.GetCookie(setting.CookieUserName)) > 0 { | ||||
| 			ctx.SetCookie("redirect_to", url.QueryEscape(setting.AppSubUrl+ctx.Req.RequestURI), 0, setting.AppSubUrl) | ||||
| 			ctx.Redirect(setting.AppSubUrl + ctx.Req.RequestURI) | ||||
| 			ctx.Redirect(setting.AppSubUrl + "/user/login") | ||||
| 			return | ||||
| 		} | ||||
|  | ||||
| 		if options.AdminRequire { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user