소스 검색

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

Henry Oswald 12 년 전
부모
커밋
04e50f8ba6
2개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/web/app/coffee/infrastructure/Server.coffee
  2. 1 0
      services/web/config/settings.defaults.coffee

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

@@ -32,7 +32,7 @@ else
 
 
 app = express()
 app = express()
 
 
-cookieKey = "sharelatex.sid"
+cookieKey = Settings.cookieName
 cookieSessionLength = 5 * oneDayInMilliseconds
 cookieSessionLength = 5 * oneDayInMilliseconds
 
 
 csrf = express.csrf()
 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,
 	# use full domain for cookies to only be accesabble from that domain,
 	# replace subdomain with dot to have them accessable on all subdomains
 	# replace subdomain with dot to have them accessable on all subdomains
 	# cookieDomain: ".sharelatex.dev"
 	# cookieDomain: ".sharelatex.dev"
+	cookieName:"sharelatex.sid"
 
 
 	# Same, but with http auth credentials.
 	# Same, but with http auth credentials.
 	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'
 	httpAuthSiteUrl: 'http://#{httpAuthUser}:#{httpAuthPass}@localhost:3000'