From 7c20ab8e55263e6aa91691f66c43c1fe9d960ac9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Georget?= Date: Fri, 30 Oct 2015 12:22:33 +0100 Subject: [PATCH] Send dashboard token --- lib/configuration/hooks/studio/index.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/lib/configuration/hooks/studio/index.js b/lib/configuration/hooks/studio/index.js index 3829bb51e6..3808a7a883 100644 --- a/lib/configuration/hooks/studio/index.js +++ b/lib/configuration/hooks/studio/index.js @@ -278,20 +278,13 @@ module.exports = function (strapi) { appName: strapi.config.name, publicKey: strapi.rsa.exportKey('private'), secretKey: strapi.config.studio.secretKey, + dashboardToken: strapi.config.dashboard.token, token: strapi.token, env: strapi.config.environment }; - } else { - object = { - appId: strapi.config.studio.appId, - appName: strapi.config.name, - publicKey: strapi.rsa.exportKey('private'), - secretKey: strapi.config.studio.secretKey, - env: strapi.config.environment - }; - } - socket.emit('check', key.encrypt(object)); + socket.emit('check', key.encrypt(object)); + } } }); }