chore(authenticator): remove copyToken command and move logic token

This commit is contained in:
Jonathan Rainville 2018-12-06 15:58:57 -05:00 committed by Iuri Matias
parent d0d3a35e9e
commit e2257e8026

View File

@ -50,22 +50,12 @@ class Authenticator {
this.embark.registerConsoleCommand((cmd, _options) => {
return {
match: () => cmd === "token",
process: (callback) => {
callback(null, __('Your authentication token: %s \nYou can use the command `copytoken` to copy the authentication token to your clipboard', this.authToken));
}
};
});
this.embark.registerConsoleCommand((cmd, _options) => {
return {
match: () => cmd === "copytoken",
process: (callback) => {
utils.copyToClipboard(this.authToken);
callback(null, __('Token copied to clipboard: %s', this.authToken));
}
};
});
}
registerEvents() {