From 43099edf0699bd50a6941d8b8001da70820d3676 Mon Sep 17 00:00:00 2001 From: igoradamenko Date: Wed, 27 Jun 2018 11:07:54 +0300 Subject: [PATCH] add site_id param to /auth request --- web/app/components/root/root.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/root/root.jsx b/web/app/components/root/root.jsx index 2428b663..4cde9ddc 100644 --- a/web/app/components/root/root.jsx +++ b/web/app/components/root/root.jsx @@ -2,7 +2,7 @@ import { h, Component } from 'preact'; import api from 'common/api'; import { BASE_URL, NODE_ID, COMMENT_NODE_CLASSNAME_PREFIX, DEFAULT_SORT, LS_SORT_KEY, MAX_SHOWN_ROOT_COMMENTS } from 'common/constants'; -import { url, maxShownComments } from 'common/settings'; +import { siteId, url, maxShownComments } from 'common/settings'; import store from 'common/store'; import AuthPanel from 'components/auth-panel'; @@ -100,7 +100,7 @@ export default class Root extends Component { } onSignIn(provider) { - const newWindow = window.open(`${BASE_URL}/auth/${provider}/login?from=${encodeURIComponent(location.href)}`); + const newWindow = window.open(`${BASE_URL}/auth/${provider}/login?from=${encodeURIComponent(location.href)}&site=${siteId}`); let secondsPass = 0; const checkMsDelay = 100;