mirror of https://github.com/embarklabs/embark.git
fix(module/authenticator): do not display log if no webserver
This commit is contained in:
parent
53154f8730
commit
97829c04f4
|
@ -72,9 +72,12 @@ class Authenticator {
|
|||
let self = this;
|
||||
|
||||
this.events.once('outputDone', () => {
|
||||
const {port, host} = this.embark.config.webServerConfig;
|
||||
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) => {
|
||||
|
|
Loading…
Reference in New Issue