Skip to content

Commit d720cc4

Browse files
fix(webapp): VNC connect for "None" authentication (#1518)
1 parent 1c28096 commit d720cc4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webapp/src/client/app/modules/web-client/vnc/web-client-vnc.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,6 @@ export class WebClientVncComponent extends WebClientBaseComponent implements OnI
508508
private callConnect(connectionParameters: IronVNCConnectionParameters): void {
509509
const configBuilder = this.remoteClient
510510
.configBuilder()
511-
.withPassword(connectionParameters.password)
512511
.withDestination(connectionParameters.host)
513512
.withProxyAddress(connectionParameters.gatewayAddress)
514513
.withAuthToken(connectionParameters.token)
@@ -525,6 +524,10 @@ export class WebClientVncComponent extends WebClientBaseComponent implements OnI
525524
configBuilder.withUsername(connectionParameters.username);
526525
}
527526

527+
if (connectionParameters.password != null) {
528+
configBuilder.withPassword(connectionParameters.password);
529+
}
530+
528531
if (connectionParameters.screenSize != null) {
529532
configBuilder.withDesktopSize(connectionParameters.screenSize);
530533
}

0 commit comments

Comments
 (0)