From 9bc63bda7ded31b77ad4aaf3495582a7c8555d2f Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sat, 30 Aug 2014 20:49:51 +0800 Subject: Finish all new admin pages. --- modules/setting/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/setting') 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) -- cgit v1.2.3