mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Fix population of username/password on loading saved profile (#21039)
This commit is contained in:
@@ -531,8 +531,12 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
|
|
||||||
protected onAuthTypeSelected(selectedAuthType: string) {
|
protected onAuthTypeSelected(selectedAuthType: string) {
|
||||||
let currentAuthType = this.getMatchingAuthType(selectedAuthType);
|
let currentAuthType = this.getMatchingAuthType(selectedAuthType);
|
||||||
|
if (currentAuthType !== AuthenticationType.SqlLogin) {
|
||||||
|
if (currentAuthType !== AuthenticationType.AzureMFA && currentAuthType !== AuthenticationType.AzureMFAAndUser) {
|
||||||
this._userNameInputBox.value = '';
|
this._userNameInputBox.value = '';
|
||||||
|
}
|
||||||
this._passwordInputBox.value = '';
|
this._passwordInputBox.value = '';
|
||||||
|
}
|
||||||
this._userNameInputBox.hideMessage();
|
this._userNameInputBox.hideMessage();
|
||||||
this._passwordInputBox.hideMessage();
|
this._passwordInputBox.hideMessage();
|
||||||
this._azureAccountDropdown.hideMessage();
|
this._azureAccountDropdown.hideMessage();
|
||||||
|
|||||||
Reference in New Issue
Block a user