Просмотр исходного кода

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

Henry Oswald 12 лет назад
Родитель
Сommit
04e50f8ba6

+ 1 - 1
services/web/app/coffee/infrastructure/Server.coffee

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

+ 1 - 0
services/web/config/settings.defaults.coffee

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