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:
parent
00dffa95c4
commit
3db354abc8
2 changed files with 2 additions and 0 deletions
|
@ -84,6 +84,7 @@ func (a authSimple) DetectUser(res http.ResponseWriter, r *http.Request) (string
|
||||||
}
|
}
|
||||||
|
|
||||||
// We had a cookie, lets renew it
|
// We had a cookie, lets renew it
|
||||||
|
sess.Options = mainCfg.GetSessionOpts()
|
||||||
if err := sess.Save(r, res); err != nil {
|
if err := sess.Save(r, res); err != nil {
|
||||||
return "", nil, err
|
return "", nil, err
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,6 +67,7 @@ func (a authYubikey) DetectUser(res http.ResponseWriter, r *http.Request) (strin
|
||||||
}
|
}
|
||||||
|
|
||||||
// We had a cookie, lets renew it
|
// We had a cookie, lets renew it
|
||||||
|
sess.Options = mainCfg.GetSessionOpts()
|
||||||
if err := sess.Save(r, res); err != nil {
|
if err := sess.Save(r, res); err != nil {
|
||||||
return "", nil, err
|
return "", nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue