From d414634f424a03de6d55ee02167a3a31e34d536b Mon Sep 17 00:00:00 2001 From: Blallo Date: Thu, 3 Feb 2022 15:18:51 +0100 Subject: [PATCH] Change cookie name --- src/phi/web/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/phi/web/app.py b/src/phi/web/app.py index aec3b7b..f95dda7 100644 --- a/src/phi/web/app.py +++ b/src/phi/web/app.py @@ -16,11 +16,12 @@ log = get_logger(__name__) LOGIN_ROUTE = "/login" +COOKIE_NAME = "PHI_COOKIE" def setup_app(config): app = web.Application() - setup(app, EncryptedCookieStorage(extract_secret(config))) + setup(app, EncryptedCookieStorage(extract_secret(config), cookie_name=COOKIE_NAME)) app["config"] = config app["store"] = ClientStore(LOGIN_ROUTE)