Commit bdd9ac32 authored by Alicja Reniewicz's avatar Alicja Reniewicz
Browse files

add password-based ssh connection

parent 5c27de43
......@@ -114,7 +114,7 @@ export class VmListComponent implements OnInit {
}
userHasPermissionToSshConnection(vm: NodeCloudiator): boolean {
return (UserRole.ADMIN === UserRole[this.userService.currentUser.userRole]) && vm.loginCredential.privateKey !== null;
return UserRole.ADMIN === UserRole[this.userService.currentUser.userRole];
}
onSshConnectionClick(vm: NodeCloudiator) {
......@@ -130,7 +130,7 @@ export class VmListComponent implements OnInit {
webSshUrl = `${AppConfigService.settings.webSshUrl}/?hostname=${vm.publicIp}&username=${vm.loginCredential.username}` +
`&password=${btoa(vm.loginCredential.password)}`;
console.log(`Password-based SSH connection under address: ${webSshUrl}`);
// todo add window.open(webSshUrl) after webssh fixed
window.open(webSshUrl);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment