conf: overhaul sessions settings (#5952)

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-02-29 00:26:03 +08:00
committed by GitHub
parent 1898201b8b
commit d59b0f6ff7
12 changed files with 127 additions and 108 deletions

View File

@@ -205,6 +205,7 @@ func Config(c *context.Context) {
c.Data["Email"] = conf.Email
c.Data["Auth"] = conf.Auth
c.Data["User"] = conf.User
c.Data["Session"] = conf.Session
c.Data["LogRootPath"] = conf.LogRootPath
@@ -216,8 +217,6 @@ func Config(c *context.Context) {
c.Data["CacheInterval"] = conf.CacheInterval
c.Data["CacheConn"] = conf.CacheConn
c.Data["SessionConfig"] = conf.SessionConfig
c.Data["DisableGravatar"] = conf.DisableGravatar
c.Data["EnableFederatedAvatar"] = conf.EnableFederatedAvatar