From cf1a9c819df40188a3701ba071b4f0bd09abd1cb Mon Sep 17 00:00:00 2001 From: Joel Speed Date: Thu, 16 May 2019 17:06:13 +0100 Subject: [PATCH] Make loadSessionFromString private --- pkg/sessions/redis/redis_store.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/sessions/redis/redis_store.go b/pkg/sessions/redis/redis_store.go index 05ff5ec..a428033 100644 --- a/pkg/sessions/redis/redis_store.go +++ b/pkg/sessions/redis/redis_store.go @@ -94,15 +94,15 @@ func (store *SessionStore) Load(req *http.Request) (*sessions.SessionState, erro if !ok { return nil, fmt.Errorf("Cookie Signature not valid") } - session, err := store.LoadSessionFromString(val) + session, err := store.loadSessionFromString(val) if err != nil { return nil, fmt.Errorf("error loading session: %s", err) } return session, nil } -// LoadSessionFromString loads the session based on the ticket value -func (store *SessionStore) LoadSessionFromString(value string) (*sessions.SessionState, error) { +// loadSessionFromString loads the session based on the ticket value +func (store *SessionStore) loadSessionFromString(value string) (*sessions.SessionState, error) { ticket, err := decodeTicket(store.CookieOptions.CookieName, value) if err != nil { return nil, err