From 97829c04f4d7bcebcd6b0fdc737027161ed5fef4 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Mon, 12 Nov 2018 10:13:38 +0000 Subject: [PATCH] fix(module/authenticator): do not display log if no webserver --- src/lib/modules/authenticator/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/modules/authenticator/index.js b/src/lib/modules/authenticator/index.js index 6421c030b..73d01a79f 100644 --- a/src/lib/modules/authenticator/index.js +++ b/src/lib/modules/authenticator/index.js @@ -72,9 +72,12 @@ class Authenticator { let self = this; this.events.once('outputDone', () => { - const {port, host} = this.embark.config.webServerConfig; - this.logger.info(__('Access the web backend with the following url: %s', - (`http://${host}:${port}/embark?token=${this.authToken}`.underline))); + const {port, host, enabled} = this.embark.config.webServerConfig; + + if (enabled) { + this.logger.info(__('Access the web backend with the following url: %s', + (`http://${host}:${port}/embark?token=${this.authToken}`.underline))); + } }); this.events.setCommandHandler('authenticator:authorize', (req, res, cb) => {