change userName to match what the azure account display name is (#11484)

* change userName to match what the azure account display name is

* Handle undefined value
This commit is contained in:
Amir Omidi
2020-07-22 19:31:52 -07:00
committed by GitHub
parent 196b3752a9
commit 32047d5557
3 changed files with 21 additions and 1 deletions

View File

@@ -816,7 +816,7 @@ export class ConnectionWidget extends lifecycle.Disposable {
}
public get userName(): string {
return this.authenticationType === AuthenticationType.AzureMFA ? this._azureAccountDropdown.value : this._userNameInputBox.value;
return this.authenticationType === AuthenticationType.AzureMFA ? this._azureAccountDropdown.label : this._userNameInputBox.value;
}
public get password(): string {