Fix population of username/password on loading saved profile (#21039)

This commit is contained in:
Cheena Malhotra
2022-10-28 22:41:59 -07:00
committed by GitHub
parent f3fcaa21da
commit 68b91089db

View File

@@ -531,8 +531,12 @@ export class ConnectionWidget extends lifecycle.Disposable {
protected onAuthTypeSelected(selectedAuthType: string) {
let currentAuthType = this.getMatchingAuthType(selectedAuthType);
this._userNameInputBox.value = '';
this._passwordInputBox.value = '';
if (currentAuthType !== AuthenticationType.SqlLogin) {
if (currentAuthType !== AuthenticationType.AzureMFA && currentAuthType !== AuthenticationType.AzureMFAAndUser) {
this._userNameInputBox.value = '';
}
this._passwordInputBox.value = '';
}
this._userNameInputBox.hideMessage();
this._passwordInputBox.hideMessage();
this._azureAccountDropdown.hideMessage();