mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Fix set authenticationType of undefined error (#21982)
This commit is contained in:
@@ -670,14 +670,17 @@ export class ConnectionWidget extends lifecycle.Disposable {
|
|||||||
this._passwordInputBox.enable();
|
this._passwordInputBox.enable();
|
||||||
this._rememberPasswordCheckBox.enabled = true;
|
this._rememberPasswordCheckBox.enabled = true;
|
||||||
|
|
||||||
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
if (this._initialConnectionInfo) {
|
||||||
if (this._initialConnectionInfo && this._initialConnectionInfo.userName) {
|
this._initialConnectionInfo.authenticationType = AuthenticationType.SqlLogin;
|
||||||
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
|
||||||
this._passwordInputBox.value = profile.password;
|
|
||||||
};
|
|
||||||
|
|
||||||
this._rememberPasswordCheckBox.checked = this._initialConnectionInfo.savePassword;
|
if (this._initialConnectionInfo.userName) {
|
||||||
this._connectionManagementService.addSavedPassword(this._initialConnectionInfo, true).then(setPasswordInputBox)
|
const setPasswordInputBox = (profile: IConnectionProfile) => {
|
||||||
|
this._passwordInputBox.value = profile.password;
|
||||||
|
};
|
||||||
|
|
||||||
|
this._rememberPasswordCheckBox.checked = this._initialConnectionInfo.savePassword;
|
||||||
|
this._connectionManagementService.addSavedPassword(this._initialConnectionInfo, true).then(setPasswordInputBox)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user