Kaynağa Gözat

#2748 fix redirect loop with auto-signin

tags/v0.9.99
Unknwon 8 yıl önce
ebeveyn
işleme
f6759a731a
4 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. 1
    1
      README.md
  2. 1
    1
      gogs.go
  3. 2
    1
      modules/middleware/auth.go
  4. 1
    1
      templates/.VERSION

+ 1
- 1
README.md Dosyayı Görüntüle

@@ -3,7 +3,7 @@ Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?bra

![](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 |
|:-------------:|:-------:|:-------:|

+ 1
- 1
gogs.go Dosyayı Görüntüle

@@ -17,7 +17,7 @@ import (
"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())

+ 2
- 1
modules/middleware/auth.go Dosyayı Görüntüle

@@ -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 {

+ 1
- 1
templates/.VERSION Dosyayı Görüntüle

@@ -1 +1 @@
0.8.53.0303
0.8.54.0304

Loading…
İptal
Kaydet