Skip to content

Commit edfa76d

Browse files
authored
Merge pull request #508 from joubertredrat/fix-cookie-name
Fix default cookie name
2 parents ba85f68 + a0f5471 commit edfa76d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

conf/app.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ START_SSH_SERVER = false
101101
; Domain name to be exposed in clone URL
102102
SSH_DOMAIN = %(DOMAIN)s
103103
; Network interface builtin SSH server listens on
104-
SSH_LISTEN_HOST =
104+
SSH_LISTEN_HOST =
105105
; Port number to be exposed in clone URL
106106
SSH_PORT = 22
107107
; Port number builtin SSH server listens on
@@ -251,7 +251,7 @@ PROVIDER = memory
251251
; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
252252
PROVIDER_CONFIG = data/sessions
253253
; Session cookie name
254-
COOKIE_NAME = i_like_gogits
254+
COOKIE_NAME = i_like_gitea
255255
; If you use session in https only, default is false
256256
COOKIE_SECURE = false
257257
; Enable set cookie, default is true

modules/setting/setting.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ func newSessionService() {
937937
SessionConfig.Provider = Cfg.Section("session").Key("PROVIDER").In("memory",
938938
[]string{"memory", "file", "redis", "mysql"})
939939
SessionConfig.ProviderConfig = strings.Trim(Cfg.Section("session").Key("PROVIDER_CONFIG").String(), "\" ")
940-
SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gogits")
940+
SessionConfig.CookieName = Cfg.Section("session").Key("COOKIE_NAME").MustString("i_like_gitea")
941941
SessionConfig.CookiePath = AppSubURL
942942
SessionConfig.Secure = Cfg.Section("session").Key("COOKIE_SECURE").MustBool(false)
943943
SessionConfig.Gclifetime = Cfg.Section("session").Key("GC_INTERVAL_TIME").MustInt64(86400)

0 commit comments

Comments
 (0)