summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-08-30 20:49:51 +0800
committerUnknwon <joe2010xtmf@163.com>2014-08-30 20:49:51 +0800
commit9bc63bda7ded31b77ad4aaf3495582a7c8555d2f (patch)
tree7c900df2d0ec5e15cebeddee8ba6fb3e418d2297 /modules/setting
parent66d51804c92d39b494563693fe912f11b59810bd (diff)
downloadgitea-9bc63bda7ded31b77ad4aaf3495582a7c8555d2f.tar.gz
gitea-9bc63bda7ded31b77ad4aaf3495582a7c8555d2f.zip
Finish all new admin pages.
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index deb1651895..ebc1020a33 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -371,7 +371,7 @@ func newSessionService() {
SessionConfig.Maxlifetime = Cfg.MustInt64("session", "SESSION_LIFE_TIME", 86400)
SessionConfig.SessionIDHashFunc = Cfg.MustValueRange("session", "SESSION_ID_HASHFUNC",
"sha1", []string{"sha1", "sha256", "md5"})
- SessionConfig.SessionIDHashKey = Cfg.MustValue("session", "SESSION_ID_HASHKEY")
+ SessionConfig.SessionIDHashKey = Cfg.MustValue("session", "SESSION_ID_HASHKEY", string(com.RandomCreateBytes(16)))
if SessionProvider == "file" {
os.MkdirAll(path.Dir(SessionConfig.ProviderConfig), os.ModePerm)