diff options
author | Joubert RedRat <me+github@redrat.com.br> | 2016-12-27 13:02:24 -0200 |
---|---|---|
committer | Joubert RedRat <me+github@redrat.com.br> | 2016-12-27 13:02:24 -0200 |
commit | a0f5471e218f649fe30d25026b7b70e0282d251e (patch) | |
tree | 0a6f7e7baa4a5f54fbb36e627f87fdd4701399ca /modules/setting | |
parent | ba85f68ea8a8b1953cf6700f9e1a5c4a8eecba0d (diff) | |
download | gitea-a0f5471e218f649fe30d25026b7b70e0282d251e.tar.gz gitea-a0f5471e218f649fe30d25026b7b70e0282d251e.zip |
Fix default cookie name
Diffstat (limited to 'modules/setting')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 105d33371e..fa6d64e214 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -937,7 +937,7 @@ func newSessionService() { SessionConfig.Provider = Cfg.Section("session").Key("PROVIDER").In("memory", []string{"memory", "file", "redis", "mysql"}) SessionConfig.ProviderConfig = strings.Trim(Cfg.Section("session").Key("PROVIDER_CONFIG").String(), "\" ") - SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gogits") + SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gitea") SessionConfig.CookiePath = AppSubURL SessionConfig.Secure = Cfg.Section("session").Key("COOKIE_SECURE").MustBool(false) SessionConfig.Gclifetime = Cfg.Section("session").Key("GC_INTERVAL_TIME").MustInt64(86400) |