mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-04-04 11:15:55 +02:00
Fix SessionMaxAge condition to correctly apply valid values
This commit is contained in:
parent
86d85f12be
commit
43cb1f1bff
@ -88,7 +88,7 @@ func Init() {
|
||||
authInstance.sessionStore = sessions.NewCookieStore(bytes)
|
||||
}
|
||||
|
||||
if d, err := time.ParseDuration(config.Keys.SessionMaxAge); err != nil {
|
||||
if d, err := time.ParseDuration(config.Keys.SessionMaxAge); err == nil {
|
||||
authInstance.SessionMaxAge = d
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user