mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-19 11:16:38 +00:00
Display feedback message after login
This commit is contained in:
parent
806678ee5f
commit
34736c4e9b
@ -35,7 +35,12 @@
|
||||
return visuals.widgets.ask('What\'s your token? (visible in the preferences page)', null, callback);
|
||||
});
|
||||
}, function(token, callback) {
|
||||
return resin.auth.loginWithToken(token, done);
|
||||
return resin.auth.loginWithToken(token, callback);
|
||||
}, function(callback) {
|
||||
return resin.auth.whoami(callback);
|
||||
}, function(username, callback) {
|
||||
console.info("Successfully logged in as: " + username);
|
||||
return callback();
|
||||
}
|
||||
], done);
|
||||
}
|
||||
|
@ -47,7 +47,14 @@ exports.login =
|
||||
visuals.widgets.ask('What\'s your token? (visible in the preferences page)', null, callback)
|
||||
|
||||
(token, callback) ->
|
||||
resin.auth.loginWithToken(token, done)
|
||||
resin.auth.loginWithToken(token, callback)
|
||||
|
||||
(callback) ->
|
||||
resin.auth.whoami(callback)
|
||||
|
||||
(username, callback) ->
|
||||
console.info("Successfully logged in as: #{username}")
|
||||
return callback()
|
||||
|
||||
], done)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user