mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-12 17:28:31 +03:00
Fix invalid cookie names
This commit is contained in:
@@ -27,7 +27,7 @@ const userSessionMiddleware = expressSession({
|
||||
// append node_env onto the end of the session name
|
||||
// so we can separate tokens under the same URL.
|
||||
// say for staging.kamaitachi.xyz
|
||||
name: `${TachiConfig.NAME} (${Environment.nodeEnv}) SESSION`,
|
||||
name: `${TachiConfig.NAME.replace(/ /gu, "_")}_SESSION`,
|
||||
secret: ServerConfig.SESSION_SECRET,
|
||||
store,
|
||||
resave: true,
|
||||
|
||||
Reference in New Issue
Block a user