A platform for community discussion. Free, open, simple.
Allow Discourse installs to name the token cookie
Robin Wardc75fd34328bc
diff --git a/lib/auth/default_current_user_provider.rb b/lib/auth/default_current_user_provider.rbindex 06781518f39..7a2eaeebb8a 100644--- a/lib/auth/default_current_user_provider.rb+++ b/lib/auth/default_current_user_provider.rb@@ -11,7 +11,7 @@ class Auth::DefaultCurrentUserProviderUSER_API_CLIENT_ID ||= "HTTP_USER_API_CLIENT_ID"API_KEY_ENV ||= "_DISCOURSE_API"USER_API_KEY_ENV ||= "_DISCOURSE_USER_API"- TOKEN_COOKIE ||= "_t"+ TOKEN_COOKIE ||= ENV['DISCOURSE_TOKEN_COOKIE'] || "_t"PATH_INFO ||= "PATH_INFO"COOKIE_ATTEMPTS_PER_MIN ||= 10BAD_TOKEN ||= "_DISCOURSE_BAD_TOKEN"