From 3db354abc8f8ca743275ae661983d4bb72a2f9dd Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 28 Jan 2018 21:40:21 +0100 Subject: [PATCH] Fix: Overwrite default session settings Signed-off-by: Knut Ahlers --- auth_simple.go | 1 + auth_yubikey.go | 1 + 2 files changed, 2 insertions(+) diff --git a/auth_simple.go b/auth_simple.go index 297c67c..8dad49d 100644 --- a/auth_simple.go +++ b/auth_simple.go @@ -84,6 +84,7 @@ func (a authSimple) DetectUser(res http.ResponseWriter, r *http.Request) (string } // We had a cookie, lets renew it + sess.Options = mainCfg.GetSessionOpts() if err := sess.Save(r, res); err != nil { return "", nil, err } diff --git a/auth_yubikey.go b/auth_yubikey.go index 5ae613b..86e04a3 100644 --- a/auth_yubikey.go +++ b/auth_yubikey.go @@ -67,6 +67,7 @@ func (a authYubikey) DetectUser(res http.ResponseWriter, r *http.Request) (strin } // We had a cookie, lets renew it + sess.Options = mainCfg.GetSessionOpts() if err := sess.Save(r, res); err != nil { return "", nil, err }