mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:58:48 +08:00
FIX: allows authentication data to be present in bootstrap (#13885)
This commit is contained in:
@ -67,7 +67,8 @@ class BootstrapController < ApplicationController
|
||||
theme_html: create_theme_html,
|
||||
html_classes: html_classes,
|
||||
html_lang: html_lang,
|
||||
login_path: main_app.login_path
|
||||
login_path: main_app.login_path,
|
||||
authentication_data: authentication_data
|
||||
}
|
||||
bootstrap[:extra_locales] = extra_locales if extra_locales.present?
|
||||
bootstrap[:csrf_token] = form_authenticity_token if current_user
|
||||
|
Reference in New Issue
Block a user