Change cookie name

develop
blallo 2022-02-03 15:18:51 +01:00
parent a222fe9560
commit d414634f42
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F
1 changed files with 2 additions and 1 deletions

View File

@ -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)