Change cookie name

This commit is contained in:
sfigato 2022-02-03 15:18:51 +01:00
parent a222fe9560
commit d414634f42
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -16,11 +16,12 @@ log = get_logger(__name__)
LOGIN_ROUTE = "/login" LOGIN_ROUTE = "/login"
COOKIE_NAME = "PHI_COOKIE"
def setup_app(config): def setup_app(config):
app = web.Application() app = web.Application()
setup(app, EncryptedCookieStorage(extract_secret(config))) setup(app, EncryptedCookieStorage(extract_secret(config), cookie_name=COOKIE_NAME))
app["config"] = config app["config"] = config
app["store"] = ClientStore(LOGIN_ROUTE) app["store"] = ClientStore(LOGIN_ROUTE)