fix: harden login session lifetime

This commit is contained in:
OpenClaw Agent
2026-09-22 04:39:10 +08:00
parent 2c8531d9b9
commit c37161db31
6 changed files with 73 additions and 28 deletions
+3
View File
@@ -29,6 +29,7 @@ type Config struct {
ImagePreview bool
FolderDownload string
SessionTimeout int
JWTSecret string
HTMLTitle string
HTMLNotice string
UserFile string
@@ -122,6 +123,8 @@ func Load(path string) (Config, error) {
if n, e := strconv.Atoi(val); e == nil && n > 0 {
c.SessionTimeout = n
}
case "jwt.secret":
c.JWTSecret = val
case "html.title":
c.HTMLTitle = val
case "html.notice":