mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-30 20:31:34 +02:00
changed cookie name from hard coded to be config option, defaults to sharelatex.sid
This commit is contained in:
@@ -32,7 +32,7 @@ else
|
||||
|
||||
app = express()
|
||||
|
||||
cookieKey = "sharelatex.sid"
|
||||
cookieKey = Settings.cookieName
|
||||
cookieSessionLength = 5 * oneDayInMilliseconds
|
||||
|
||||
csrf = express.csrf()
|
||||
|
||||
@@ -111,6 +111,7 @@ module.exports =
|
||||
# use full domain for cookies to only be accesabble from that domain,
|
||||
# replace subdomain with dot to have them accessable on all subdomains
|
||||
# cookieDomain: ".sharelatex.dev"
|
||||
cookieName:"sharelatex.sid"
|
||||
|
||||
# Same, but with http auth credentials.
|
||||
httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
|
||||
|
||||
Reference in New Issue
Block a user