fix: change session cookie name used by UI to avoid conflict with incompatible 2.0.x cookie (#22632)
parent
a02782c63f
commit
e12e78aa69
|
@ -161,7 +161,7 @@ func decodeSignoutRequest(ctx context.Context, r *http.Request) (*signoutRequest
|
|||
}, nil
|
||||
}
|
||||
|
||||
const cookieSessionName = "session"
|
||||
const cookieSessionName = "influxdb-oss-session"
|
||||
|
||||
func encodeCookieSession(w http.ResponseWriter, s *influxdb.Session) {
|
||||
c := &http.Cookie{
|
||||
|
|
|
@ -58,7 +58,7 @@ func TestSessionHandler_handleSignin(t *testing.T) {
|
|||
password: "supersecret",
|
||||
},
|
||||
wants: wants{
|
||||
cookie: "session=abc123xyz; Path=/api/",
|
||||
cookie: "influxdb-oss-session=abc123xyz; Path=/api/",
|
||||
code: http.StatusNoContent,
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue