Skip to content
Snippets Groups Projects
Commit c2e39eb3 authored by michael.minelli's avatar michael.minelli
Browse files

Login => Add info text

parent 660267e1
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,11 @@ class SessionManager { ...@@ -141,6 +141,11 @@ class SessionManager {
private getGitlabCodeFromGraphicEnvironment(): Promise<string> { private getGitlabCodeFromGraphicEnvironment(): Promise<string> {
return new Promise<string>((resolve, reject) => { return new Promise<string>((resolve, reject) => {
ora({
text : 'GUI mode (for headless mode, use the --cli option)',
indent: 4
}).start().info();
let currentSpinner: ora.Ora = ora({ let currentSpinner: ora.Ora = ora({
text : 'Starting login server', text : 'Starting login server',
indent: 4 indent: 4
...@@ -150,7 +155,7 @@ class SessionManager { ...@@ -150,7 +155,7 @@ class SessionManager {
loginServer.events.on('started', () => { loginServer.events.on('started', () => {
currentSpinner.succeed('Login server started'); currentSpinner.succeed('Login server started');
currentSpinner = ora({ currentSpinner = ora({
text : 'Waiting for user to authorize the application in his web browser', text : `Waiting for user to authorize the application in his web browser. If the browser does not open automatically, please go to : ${ Config.login.gitlab.url.code }`,
indent: 4 indent: 4
}).start(); }).start();
open(Config.login.gitlab.url.code).then(); open(Config.login.gitlab.url.code).then();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment