1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-15 00:15:00 +02:00

Update update session from store

This commit is contained in:
Kevin Kreitner
2021-09-29 17:15:48 +02:00
committed by Joel Speed
parent ccd7a91b2b
commit 88ab07930e

View File

@ -200,7 +200,7 @@ func (s *storedSessionLoader) updateSessionFromStore(req *http.Request, session
return fmt.Errorf("unable to load updated session from store: %v", err)
}
if session == nil || sessionStored == nil {
if sessionStored == nil {
return fmt.Errorf("no session available to udpate from store")
}
*session = *sessionStored