File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ const CONNECT_TIMEOUT_MS = 10000;
2727
2828// Credentials for accessing a cloud instance.
2929// The serialised, base64 form is distributed amongst users.
30- // TODO: add (private) keys, for key-based auth
3130interface Invite {
3231 // Hostname or IP of the cloud instance.
3332 // This is the host on which sshd is running, so it should
@@ -37,7 +36,7 @@ interface Invite {
3736 user : string ;
3837 // Private key, base64-encoded.
3938 key : string ;
40- // Is Admin .
39+ // True iff uProxy has root access on the server, i.e. uProxy deployed it .
4140 isAdmin ?: boolean ;
4241}
4342
@@ -360,10 +359,12 @@ export class CloudSocialProvider {
360359 public inviteUser = ( host : string ) : Promise < Object > => {
361360 log . debug ( 'inviteUser' ) ;
362361 if ( ! ( host in this . savedContacts_ ) ) {
363- return Promise . reject ( { message : 'unknown cloud instance ' + host } ) ;
362+ return Promise . reject ( {
363+ message : 'unknown cloud instance ' + host
364+ } ) ;
364365 }
365366 const invite = this . savedContacts_ [ host ] . invite ;
366- return Promise . resolve ( {
367+ return Promise . resolve ( < Invite > {
367368 host : invite . host ,
368369 user : invite . user ,
369370 key : invite . key
You can’t perform that action at this time.
0 commit comments