1
0
Fork 0
mirror of https://github.com/Luzifer/nginx-sso.git synced 2024-12-20 12:51:17 +00:00

Fix: Overwrite default session settings

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-28 21:40:21 +01:00
parent 00dffa95c4
commit 3db354abc8
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 0 deletions

View file

@ -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
}

View file

@ -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
}