![](https://github.com/gogits/gogs/blob/master/public/img/gogs-large-resize.png?raw=true)
-##### Current version: 0.8.53
+##### Current version: 0.8.54
| Web | UI | Preview |
|:-------------:|:-------:|:-------:|
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.8.53.0303"
+const APP_VER = "0.8.54.0304"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
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 {
-0.8.53.0303
\ No newline at end of file
+0.8.54.0304
\ No newline at end of file