diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 20:46:16 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-02-22 20:46:16 +0800 |
commit | 286fbc07e985d960209e8443a57e7f95efe60efd (patch) | |
tree | dd3d0d38081fa258751004472695c8fdc6885e43 /internal/auth/auth.go | |
parent | a7e53b8134eefcbaa60a2755da8518dd08471a69 (diff) |
conf: overhaul security settings
Diffstat (limited to 'internal/auth/auth.go')
-rw-r--r-- | internal/auth/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/auth/auth.go b/internal/auth/auth.go index 0270b6b4..23db4e2b 100644 --- a/internal/auth/auth.go +++ b/internal/auth/auth.go @@ -13,9 +13,9 @@ import ( "gopkg.in/macaron.v1" log "unknwon.dev/clog/v2" + "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/db" "gogs.io/gogs/internal/db/errors" - "gogs.io/gogs/internal/conf" "gogs.io/gogs/internal/tool" ) @@ -91,7 +91,7 @@ func SignedInUser(ctx *macaron.Context, sess session.Store) (_ *db.User, isBasic if uid <= 0 { if conf.Service.EnableReverseProxyAuth { - webAuthUser := ctx.Req.Header.Get(conf.ReverseProxyAuthUser) + webAuthUser := ctx.Req.Header.Get(conf.Security.ReverseProxyAuthenticationUser) if len(webAuthUser) > 0 { u, err := db.GetUserByName(webAuthUser) if err != nil { |