Change cookie name
This commit is contained in:
parent
a222fe9560
commit
d414634f42
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user