changed cookie name from hard coded to be config option, defaults to sharelatex.sid

This commit is contained in:
Henry Oswald 2014-08-20 18:01:21 +01:00
parent c51c0c1cf2
commit 04e50f8ba6
2 changed files with 2 additions and 1 deletions

View file

@ -32,7 +32,7 @@ else
app = express()
cookieKey = "sharelatex.sid"
cookieKey = Settings.cookieName
cookieSessionLength = 5 * oneDayInMilliseconds
csrf = express.csrf()

View file

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